暂存
This commit is contained in:
@@ -119,9 +119,7 @@ type UserPayment struct {
|
||||
|
||||
type UserDeliveryAddress struct {
|
||||
ModelIDCULD
|
||||
|
||||
UserID string `orm:"size(48);column(user_id)" json:"userID"` // 内部唯一标识
|
||||
|
||||
UserID string `orm:"size(48);column(user_id)" json:"userID"` // 内部唯一标识
|
||||
Tag string `orm:"size(32)" json:"tag"`
|
||||
ConsigneeName string `orm:"size(32)" json:"consigneeName"`
|
||||
ConsigneeMobile string `orm:"size(32)" json:"consigneeMobile"`
|
||||
@@ -129,14 +127,12 @@ type UserDeliveryAddress struct {
|
||||
DetailAddress string `orm:"size(255)" json:"detailAddress"` // 门牌号
|
||||
Lng float64 `orm:"digits(10);decimals(6)" json:"lng"`
|
||||
Lat float64 `orm:"digits(10);decimals(6)" json:"lat"`
|
||||
|
||||
AutoAddress string `orm:"size(255)" json:"autoAddress"` // 这个是通过坐标自动获取的结构化的地址
|
||||
CityCode int `orm:"default(0);null" json:"cityCode"` // 根据坐标获得
|
||||
DistrictCode int `orm:"default(0);null" json:"districtCode"` // 根据坐标获得
|
||||
|
||||
Remark string `orm:"type(text)" json:"remark"`
|
||||
IsDefault int8 `json:"isDefault"`
|
||||
Type int `json:"type"` //1为寄件人,2为取件人(收货人)
|
||||
AutoAddress string `orm:"size(255)" json:"autoAddress"` // 这个是通过坐标自动获取的结构化的地址
|
||||
CityCode int `orm:"default(0);null" json:"cityCode"` // 根据坐标获得
|
||||
DistrictCode int `orm:"default(0);null" json:"districtCode"` // 根据坐标获得
|
||||
Remark string `orm:"type(text)" json:"remark"`
|
||||
IsDefault int8 `json:"isDefault"`
|
||||
Type int `json:"type"` //1为寄件人,2为取件人(收货人)
|
||||
}
|
||||
|
||||
func (*UserDeliveryAddress) TableUnique() [][]string {
|
||||
|
||||
Reference in New Issue
Block a user