| | |
| | | } |
| | | ResponseProcessParams struct { |
| | | Number string `json:"number"` //工艺模型编号 |
| | | OrderId string `json:"orderId"` //订单id |
| | | Product string `json:"product"` //产品名称 |
| | | Procedure string `json:"procedure"` //工序 |
| | | WorkOrder string `json:"workOrder"` //工单 |
| | | Device string `json:"device"` //设备 |
| | | Params string `json:"params"` |
| | | ParamsMap map[string]interface{} `json:"paramsMap"` |
| | | DeviceId string `json:"deviceId" gorm:"-"` //用于过滤获取nsq消息 |
| | |
| | | IsFinish bool //是否完成 |
| | | } |
| | | |
| | | type Device struct { |
| | | // DeviceMsg 下发到终端的设备信息 |
| | | type DeviceMsg struct { |
| | | ID string `gorm:"comment:主键ID;primaryKey;type:varchar(191);" json:"id"` |
| | | DeviceProcedureAttr []*DeviceProcedureAttr `json:"deviceProcedureAttr"` // 设备工序属性列表 |
| | | ExtChannelAmount int `gorm:"type:tinyint;comment:额外的通道数量;default:0;" json:"extChannelAmount"` |
| | | PlcAddressList []*PlcAddress |
| | | PlcConfig *PlcConfig |
| | | } |
| | | type DeviceProcedureAttr struct { |
| | | ProcedureID string `gorm:"index;type:varchar(191);comment:工序ID" json:"procedureId"` |
| | |
| | | |
| | | const ( |
| | | PullDataTypeProcessModel = "process_model" |
| | | PullDataTypeDevice = "device" |
| | | ) |
| | | |
| | | // MsgPullDataRequest 拉取云端数据 |