From 8be36697a7705f87eac746a1460fd32cd0f0bf98 Mon Sep 17 00:00:00 2001 From: Havoc412 <2993167370@qq.com> Date: Thu, 24 Oct 2024 14:47:52 +0800 Subject: [PATCH] add filed --- app/model/animal.go | 5 +++-- app/model/migrate/AutoMigrate.go | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/model/animal.go b/app/model/animal.go index 9d4036e..68468c0 100644 --- a/app/model/animal.go +++ b/app/model/animal.go @@ -33,8 +33,9 @@ type Animal struct { Longitude float64 `json:"longitude,omitempty"` // POI 位置相关 ActivityRadius uint64 `json:"activity_radius,omitempty"` // 活动半径 // CatFace - FaceBreeds string `json:"face_breeds,omitempty" gorm:"size:20"` - FaceBreedProbs string `json:"face_breed_probs,omitempty" gorm:"size:20"` + FaceModelScore float64 `json:"face_model_score,omitempty" gorm:"defalut:0"` // 评估面部模型得分 + FaceBreeds string `json:"face_breeds,omitempty" gorm:"size:20"` + FaceBreedProbs string `json:"face_breed_probs,omitempty" gorm:"size:20"` } func (a *Animal) TableName() string { diff --git a/app/model/migrate/AutoMigrate.go b/app/model/migrate/AutoMigrate.go index 3d77dac..cdabdff 100644 --- a/app/model/migrate/AutoMigrate.go +++ b/app/model/migrate/AutoMigrate.go @@ -127,5 +127,5 @@ func main() { autoMigrateTable() fmt.Println("autoMigrateTable over.") - insertData() // INFO 记得用完注释掉 + // insertData() // INFO 记得用完注释掉 }