model/device_plc.go
@@ -12,7 +12,7 @@ // DevicePlc 设备的PLC配置 DevicePlc struct { gorm.Model CommonModel 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"`