You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
1.0 KiB

4 years ago
package order_preview
type Addr struct {
ID uint `gorm:"column:id;primary_key" json:"id"`
OrderID uint `gorm:"column:order_id" json:"-"`
AddressID uint `gorm:"column:address_id" json:"addressId"`
Province string `gorm:"column:province" json:"province"` // 省
City string `gorm:"column:city" json:"city"` // 市
District string `gorm:"column:district" json:"district"` // 区县
Address string `gorm:"column:address" json:"address"` // 具体地址
ReceiverName string `gorm:"column:receiver_name" json:"receiverName"` // 收件人姓名
Mobile string `gorm:"column:mobile" json:"mobile"` // 手机号码
IsDeliveryArea uint `gorm:"column:is_delivery_area" json:"isDeliveryArea"` // 是否属于发货地区 1属于发货地区 0不属于
}
// TableName sets the insert table name for this struct type
func (r *Addr) TableName() string {
return "recook_order_preview_addr"
}