model/device_plc.go
@@ -12,7 +12,7 @@ // DevicePlc 设备的PLC配置 DevicePlc struct { gorm.Model `json:"-"` Id int `gorm:"primarykey;type:int;"` Id int `gorm:"primarykey;type:int;" json:"id"` Brand string `gorm:"type:varchar(191);comment:PLC品牌" json:"brand"` Method string `gorm:"type:varchar(191);comment:接口方式" json:"method"` PortName string `gorm:"type:varchar(191);comment:端口名称" json:"portName"`