zhangqian
2023-10-07 3e438843c57c2e3525c14832eb26e5ac343b817c
model/common/common.go
@@ -126,3 +126,14 @@
   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"`
}