zhangqian
2023-12-08 8e941bd782f574597f19c980982afade4dc11748
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"`