| | |
| | | } |
| | | |
| | | type ProductProgress struct { |
| | | FinishNumber int `json:"finishNumber"` |
| | | TotalNumber int `json:"totalNumber"` |
| | | PlcStatus int `json:"plcStatus"` |
| | | FinishNumber int `json:"finishNumber"` |
| | | TotalNumber int `json:"totalNumber"` |
| | | PlcStatus int `json:"plcStatus"` |
| | | RealStartTime int64 `json:"RealStartTime"` |
| | | RealEndTime int64 `json:"RealEndTime"` |
| | | } |
| | | |
| | | type TaskCountdown struct { |
| | |
| | | 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"` //当前选定的生产设备 |
| | | DeviceIDList []string `json:"deviceIDList,omitempty"` //生产设备id列表 |
| | | 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"` //系统运行开始时间戳 |
| | | } |