| | |
| | | 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"` |
| | | DeviceName string `json:"deviceName"` |
| | | DeviceMac string `json:"deviceMac"` |
| | | PlcAddressList []*PlcAddress |
| | | PlcConfig *PlcConfig |
| | | } |
| | |
| | | StopBit int `gorm:"type:int(11)" json:"stopBit"` //停止位,method = modbusRTU 用 |
| | | Parity constvar.Parity `gorm:"type:int(11)" json:"parity"` //校验方式,method = modbusRTU 用 |
| | | } |
| | | |
| | | // MsgReportData 数据上报 |
| | | type MsgReportData struct { |
| | | ReportType constvar.ReportType `json:"reportType"` //上报类型 |
| | | Content string `json:"Content"` |
| | | } |