| | |
| | | IsProcessing bool //是否处理中 |
| | | IsFinish bool //是否完成 |
| | | } |
| | | |
| | | type Device 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"` |
| | | } |
| | | type DeviceProcedureAttr struct { |
| | | ProcedureID string `gorm:"index;type:varchar(191);comment:工序ID" json:"procedureId"` |
| | | ProcedureName string `gorm:"type:varchar(191);comment:工序名称" json:"procedureName"` |
| | | DeviceID string `gorm:"index;type:varchar(191);not null;comment:设备ID" json:"deviceId"` |
| | | } |