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 记得用完注释掉 }