From d3ea6799865812baaa1439922d6123e70a0cccdc Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期五, 23 八月 2024 17:39:04 +0800 Subject: [PATCH] 修复otherFeature字段传送楼层信息 --- models/positions.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/models/positions.go b/models/positions.go index 237cba5..0978bca 100644 --- a/models/positions.go +++ b/models/positions.go @@ -3,7 +3,7 @@ import "time" type Positions struct { - Id uint `gorm:"column:id;primary_key;auto_increment;unique;not null;"` + Id uint `gorm:"column:id;primary_key;auto_increment;" json:"id"` DeviceId string `gorm:"column:device_id;index" json:"device_id"` Pos string `gorm:"column:pos" json:"pos"` RunDir int `gorm:"column:run_dir" json:"run_dir"` -- Gitblit v1.8.0