model/device_plc.go
@@ -13,7 +13,7 @@ // DevicePlc 设备的PLC配置 DevicePlc struct { gorm.Model DeviceID string `gorm:"column:device_id;type:varchar(255);not null;unique_index" json:"deviceID"` //设备编号 DeviceID string `gorm:"column:device_id;type:varchar(255);not null;unique" json:"deviceID"` //设备编号 Brand string `gorm:"type:varchar(191)" json:"brand"` Method constvar.PlcMethod `gorm:"type:varchar(191)" json:"method"` Address string `gorm:"type:varchar(191)" json:"address"` //plc ip地址, method = modbusTCP用