add filed
This commit is contained in:
parent
153c6b69a6
commit
8be36697a7
@ -33,8 +33,9 @@ type Animal struct {
|
|||||||
Longitude float64 `json:"longitude,omitempty"` // POI 位置相关
|
Longitude float64 `json:"longitude,omitempty"` // POI 位置相关
|
||||||
ActivityRadius uint64 `json:"activity_radius,omitempty"` // 活动半径
|
ActivityRadius uint64 `json:"activity_radius,omitempty"` // 活动半径
|
||||||
// CatFace
|
// CatFace
|
||||||
FaceBreeds string `json:"face_breeds,omitempty" gorm:"size:20"`
|
FaceModelScore float64 `json:"face_model_score,omitempty" gorm:"defalut:0"` // 评估面部模型得分
|
||||||
FaceBreedProbs string `json:"face_breed_probs,omitempty" gorm:"size:20"`
|
FaceBreeds string `json:"face_breeds,omitempty" gorm:"size:20"`
|
||||||
|
FaceBreedProbs string `json:"face_breed_probs,omitempty" gorm:"size:20"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *Animal) TableName() string {
|
func (a *Animal) TableName() string {
|
||||||
|
@ -127,5 +127,5 @@ func main() {
|
|||||||
autoMigrateTable()
|
autoMigrateTable()
|
||||||
fmt.Println("autoMigrateTable over.")
|
fmt.Println("autoMigrateTable over.")
|
||||||
|
|
||||||
insertData() // INFO 记得用完注释掉
|
// insertData() // INFO 记得用完注释掉
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user