zhangqian
2023-12-08 8e941bd782f574597f19c980982afade4dc11748
model/device.go
@@ -10,7 +10,7 @@
type (
   // Device 设备
   Device struct {
      gorm.Model
      CommonModel
      DeviceID             string   `gorm:"column:device_id;type:varchar(255);not null;unique" json:"deviceID"` //设备编号
      DeviceName           string   `gorm:"column:device_name;type:varchar(255);" json:"deviceName"`            //设备名称
      ExtChannelAmount     int      `gorm:"type:tinyint;default:0" json:"extChannelAmount"`