feat:完善信息

This commit is contained in:
henry
2021-09-30 16:20:00 +08:00
parent 161df42060
commit bd788b8b7e
7 changed files with 118 additions and 37 deletions

View File

@ -66,9 +66,11 @@ const (
AccountStatusForDisable
)
// Format 格式化
func (m *AccountStatus) Format() string {
return utils.AnyToJSON(m)
type Area struct {
Province uint64 `gorm:"column:province;type:int;default:0;comment:所在省" json:"province"`
City uint64 `gorm:"column:city;type:int;default:0;comment:所在市" json:"city"`
District uint64 `gorm:"column:district;type:int;default:0;comment:所在区/县" json:"district"`
Address string `gorm:"column:address;type:varchar(255);default:null;comment:详细地址" json:"address"`
}
// Position 坐标信息