zhangqian
2023-11-09 02a84fb6fb2a39bfe7fc5cf6c0137bbf231b17fe
model/common/common.go
@@ -132,6 +132,8 @@
   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"`
   DeviceName          string                 `json:"deviceName"`
   DeviceMac           string                 `json:"deviceMac"`
   PlcAddressList      []*PlcAddress
   PlcConfig           *PlcConfig
}
@@ -144,8 +146,9 @@
type PullDataType string
const (
   PullDataTypeProcessModel = "process_model"
   PullDataTypeDevice       = "device"
   PullDataTypeProcessModel           = "process_model"
   PullDataTypeDevice                 = "device"
   PullDataTypeProcessModelPlcAddress = "process_model_plc_address"
)
// MsgPullDataRequest 拉取云端数据