zhangqian
2023-10-21 5a9e2e97e78a05209a57a75a75678d67c32c58d5
model/common/common.go
@@ -124,10 +124,13 @@
   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"`