1
2
3
4
5
6
7
8
9
10
11
12
13
14
package model
 
type (
    Address struct {
        CountryId  int `json:"country_id" gorm:"column:country_id;type:int(11);comment:国家ID"`
        Country    Country
        ProvinceId int `json:"province_id" gorm:"column:province_id;type:int(11);comment:省份ID"`
        Province   Province
        CityId     int `json:"city_id" gorm:"column:city_id;type:int(11);comment:城市ID"`
        City       City
        RegionId   int `json:"region_id" gorm:"column:region_id;type:int(11);comment:区域ID"`
        Region     Region
    }
)