zhangqian
2023-11-04 af74e9840efa3379fee18fa8362c6d571a38aad6
model/common/common.go
@@ -132,6 +132,7 @@
   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"`
   DeviceMac           string                 `gorm:"type:varchar(191);comment:设备MAC" json:"deviceMac"`
   PlcAddressList      []*PlcAddress
   PlcConfig           *PlcConfig
}
@@ -144,8 +145,9 @@
type PullDataType string
const (
   PullDataTypeProcessModel = "process_model"
   PullDataTypeDevice       = "device"
   PullDataTypeProcessModel           = "process_model"
   PullDataTypeDevice                 = "device"
   PullDataTypeProcessModelPlcAddress = "process_model_plc_address"
)
// MsgPullDataRequest 拉取云端数据