model/common/common.go
@@ -137,3 +137,19 @@ ProcedureName string `gorm:"type:varchar(191);comment:工序名称" json:"procedureName"` DeviceID string `gorm:"index;type:varchar(191);not null;comment:设备ID" json:"deviceId"` } type PullDataType string const ( PullDataTypeProcessModel = "process_model" ) // MsgPullDataRequest 拉取云端数据 type MsgPullDataRequest struct { DataType PullDataType `json:"dataType"` //要拉取的数据类型 } type MsgPullDataResponse struct { DataType PullDataType `json:"dataType"` //要拉取的数据类型 Data interface{} //返回的数据 }