修改地址数据int为string

This commit is contained in:
2024-08-23 13:39:05 +08:00
parent 04b6469827
commit c3d4333220
4 changed files with 37 additions and 34 deletions
+3 -3
View File
@@ -16,11 +16,11 @@ type UserInfo struct {
IsFamilyHistory *int `gorm:"column:is_family_history;type:tinyint(1);comment:是否存在家族病史(0:未知 1:是 2:否)" json:"is_family_history"`
IsPregnant *int `gorm:"column:is_pregnant;type:tinyint(1);comment:是否怀孕(1:无计划 2:计划中 3:已怀孕 4:家有宝宝)" json:"is_pregnant"`
ExpectedDate *LocalTime `gorm:"column:expected_date;type:datetime;comment:预产期" json:"expected_date"`
ProvinceId *int64 `gorm:"column:province_id;type:int(11);comment:省份id" json:"province_id"`
ProvinceId string `gorm:"column:province_id;type:int(11);comment:省份id" json:"province_id"`
Province string `gorm:"column:province;type:varchar(40);comment:省份" json:"province"`
CityId *int64 `gorm:"column:city_id;type:int(11);comment:城市id" json:"city_id"`
CityId string `gorm:"column:city_id;type:int(11);comment:城市id" json:"city_id"`
City string `gorm:"column:city;type:varchar(50);comment:城市" json:"city"`
CountyId *int64 `gorm:"column:county_id;type:int(11);comment:区县id" json:"county_id"`
CountyId string `gorm:"column:county_id;type:int(11);comment:区县id" json:"county_id"`
County string `gorm:"column:county;type:varchar(255);comment:区县" json:"county"`
Model
}