zhangqian
2023-08-23 302c591ca77dd4fb2b6e373d9912b91ee88f89f5
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"`
@@ -29,7 +29,7 @@
      StartAddress int    `json:"startAddress"` // 数据起始地址
      Length       int    `json:"length"`       // 数据长度
      Type         string `json:"type"`         // 数据类型
      FieldName    string `json:"fieldName"`    // 对应系统字段
      FieldName    int    `json:"fieldName"`    // 对应系统字段
   }
   DevicePlcSearch struct {