uint/uint64全部改为uint32
This commit is contained in:
@@ -6,7 +6,6 @@ import (
|
||||
"fmt"
|
||||
|
||||
"gorm.io/datatypes"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// ModbusFunctionCode 定义Modbus功能码的枚举类型
|
||||
@@ -106,7 +105,7 @@ func (sc *SensorCommands) SelfCheck() error {
|
||||
|
||||
// DeviceTemplate 代表一种物理设备的类型。
|
||||
type DeviceTemplate struct {
|
||||
gorm.Model
|
||||
Model
|
||||
|
||||
// Name 是此模板的唯一名称, 例如 "FanModel-XYZ-2000" 或 "TempSensor-T1"
|
||||
Name string `gorm:"not null;unique" json:"name"`
|
||||
|
||||
Reference in New Issue
Block a user