uint/uint64全部改为uint32
This commit is contained in:
@@ -55,10 +55,10 @@ type SensorData struct {
|
||||
Time time.Time `gorm:"primaryKey" json:"time"`
|
||||
|
||||
// DeviceID 是传感器的唯一标识符,作为复合主键的另一部分。
|
||||
DeviceID uint `gorm:"primaryKey" json:"device_id"`
|
||||
DeviceID uint32 `gorm:"primaryKey" json:"device_id"`
|
||||
|
||||
// AreaControllerID 是上报此数据的区域主控的ID。
|
||||
AreaControllerID uint `json:"area_controller_id"`
|
||||
AreaControllerID uint32 `json:"area_controller_id"`
|
||||
|
||||
// SensorType 是传感数据的类型
|
||||
SensorType SensorType `gorm:"not null;index" json:"sensor_type"`
|
||||
|
||||
Reference in New Issue
Block a user