1234567891011121314151617181920212223242526272829 |
- package models
- type AddressBook struct {
- Id int `gorm:"column:id" json:"id"`
- CreatedTime MyTime `gorm:"column:created_time" json:"createdTime"`
- CreatedBy int `gorm:"column:created_by" json:"createdBy"`
- UpdatedTime MyTime `gorm:"column:updated_time" json:"updatedTime"`
- UpdatedBy int `gorm:"column:updated_by" json:"updatedBy"`
- DeletedTime MyTime `gorm:"column:deleted_time" json:"deletedTime"`
- DeletedBy int `gorm:"column:deleted_by" json:"deletedBy"`
- Deleted int `gorm:"column:deleted" json:"deleted"`
- AddressType string `gorm:"column:address_type" json:"addressType"`
- Name string `gorm:"column:name" json:"name"`
- Phone string `gorm:"column:phone" json:"phone"`
- ProvinceId int `gorm:"column:province_id" json:"provinceId"`
- ProvinceName string `gorm:"column:province_name" json:"provinceName"`
- CityId int `gorm:"column:city_id" json:"cityId"`
- CityName string `gorm:"column:city_name" json:"cityName"`
- RegionId int `gorm:"column:region_id" json:"regionId"`
- RegionName string `gorm:"column:region_name" json:"regionName"`
- Address string `gorm:"column:address" json:"address"`
- IsDefault int `gorm:"column:is_default" json:"isDefault"`
- }
- func (*AddressBook) TableName() string {
- return "address_book"
- }
|