| | |
| | | package response |
| | | |
| | | import ( |
| | | "apsClient/conf" |
| | | "apsClient/model" |
| | | "apsClient/model/common" |
| | | ) |
| | | |
| | | type PageResult struct { |
| | |
| | | } |
| | | |
| | | type TaskData struct { |
| | | Order *model.Order |
| | | Procedure *model.Procedures |
| | | Position int //当前任务在设备第几个位置 |
| | | Order *model.Order |
| | | Procedure *model.Procedures |
| | | |
| | | Channel int32 //当前任务在设备第几个通道 |
| | | AllProcedures []string |
| | | CurrentProcedureIndex int |
| | | CanStarted bool //是否可以开始生产 |
| | | } |
| | | |
| | | type TaskResponse struct { |
| | | Tasks []*TaskData |
| | | TaskCount int64 |
| | | Tasks []*TaskData //任务列表 |
| | | TaskCount int64 //任务数量 |
| | | Workers []*common.ProcedureWorker `json:"workers"` // 人员列表 |
| | | Prompt conf.Prompt //提示语 |
| | | ChannelAmount int //通道数量 |
| | | } |
| | | |
| | | type Config struct { |
| | |
| | | } |
| | | |
| | | type ProductProgress struct { |
| | | FinishNumber int `json:"finishNumber"` |
| | | TotalNumber int `json:"totalNumber"` |
| | | FinishNumber int `json:"finishNumber"` |
| | | TotalNumber int `json:"totalNumber"` |
| | | PlcStatus int `json:"plcStatus"` |
| | | RealStartTime int64 `json:"RealStartTime"` |
| | | RealEndTime int64 `json:"RealEndTime"` |
| | | } |
| | | |
| | | type TaskCountdown struct { |
| | |
| | | CountDownMinute int64 //倒计时 分 |
| | | ShowCountDown bool //是否展示倒计时 |
| | | } |
| | | |
| | | type Message struct { |
| | | Event string |
| | | Data interface{} |
| | | } |
| | | |
| | | type SystemDeviceStatus int |
| | | |
| | | const ( |
| | | SystemDeviceStatusNormal SystemDeviceStatus = 1 //正常 |
| | | SystemDeviceStatusUnNormal SystemDeviceStatus = 2 //异常 |
| | | ) |
| | | |
| | | type Device struct { |
| | | DeviceID string `json:"deviceID"` |
| | | DeviceName string `json:"deviceName"` |
| | | NeedSetProcessParams bool `json:"needSetProcessParams"` //是否需要设置工艺参数 |
| | | } |
| | | |
| | | type DeviceListResponse struct { |
| | | SystemDeviceID string `json:"systemDeviceID,omitempty"` //工控机设备ID |
| | | CurrentDeviceID string `json:"currentDeviceID,omitempty"` //当前选定的生产设备 |
| | | DeviceList []*Device `json:"deviceList,omitempty"` //生产设备id列表 |
| | | SystemDeviceStatus SystemDeviceStatus `json:"systemDeviceStatus"` //设备状态 |
| | | ClusterStatus string `json:"clusterStatus"` //集群状态 |
| | | ClusterNodeQuantity int `json:"clusterNodeQuantity"` //集群节点数量 |
| | | SystemDeviceRunSince int64 `json:"systemDeviceRunSince"` //系统运行开始时间戳 |
| | | } |