order address apis
This commit is contained in:
@@ -1,25 +1,53 @@
|
||||
package dao
|
||||
|
||||
const DeliveryAddressDefaultYes = 1 //默认
|
||||
const DeliveryAddressDefaultNo = 2 //不默认
|
||||
const DeliveryAddressTypeStore = 1
|
||||
const AddressDefaultYes = 1 //默认
|
||||
const AddressDefaultNo = 2 //不默认
|
||||
const AddressTypeStore = 1
|
||||
const AddressTypeSale = 2
|
||||
const AddressTypeUser = 3
|
||||
|
||||
type Address struct {
|
||||
Id int64 `json:"id" gorm:"id"`
|
||||
TargetId int64 `json:"target_id" gorm:"target_id"` // 对象ID
|
||||
District string `json:"district" gorm:"district"` // 地区
|
||||
DistrictIds string `json:"district_ids" gorm:"district_ids"` // 地区IDS
|
||||
Default int32 `json:"default" gorm:"default"` // 默认:1为默认,2为不默认
|
||||
Address string `json:"address" gorm:"address"` // 地址
|
||||
SaleId int64 `json:"sale_id" gorm:"sale_id"` // 销售ID
|
||||
GroupId int64 `json:"group_id" gorm:"group_id"` // 分组ID
|
||||
Name string `json:"name" gorm:"name"` // 收货人姓名
|
||||
Mobile string `json:"mobile" gorm:"mobile"` // 收货人手机
|
||||
Type int32 `json:"type" gorm:"type"` // 类型 1门店 , 2销售,3为用户
|
||||
Status int32 `json:"status" gorm:"status"` // 状态,1是正常,2为申请,3为一审核,4为二审核中,5为拒绝申请,6为审核失败,7为删除
|
||||
Default uint8 `gorm:"column:default;type:tinyint(1);default:2;comment:默认:1为默认,2为不默认" json:"default"`
|
||||
Address string `json:"address" gorm:"address"` // 地址
|
||||
SaleId int64 `json:"sale_id" gorm:"sale_id"` // 销售ID
|
||||
GroupId int64 `json:"group_id" gorm:"group_id"` // 分组ID
|
||||
Name string `json:"name" gorm:"name"` // 收货人姓名
|
||||
Mobile string `json:"mobile" gorm:"mobile"` // 收货人手机
|
||||
Type int32 `json:"type" gorm:"type"` // 类型 1门店 , 2销售,3为用户
|
||||
Status int32 `json:"status" gorm:"status"` // 状态,1是正常,2为申请,3为一审核,4为二审核中,5为拒绝申请,6为审核失败,7为删除
|
||||
Reason string `json:"reason" gorm:"reason"`
|
||||
NewContent string `json:"new_content" gorm:"new_content"` // 编辑后的内容
|
||||
TypeName string `json:"type_name" gorm:"type_name"` // 类型名
|
||||
AdminId int64 `json:"admin_id" gorm:"admin_id"`
|
||||
AdminName string `json:"admin_name" gorm:"admin_name"`
|
||||
AesMobile string `gorm:"-" json:"aes_mobile"`
|
||||
}
|
||||
|
||||
type AllDefault struct {
|
||||
Default uint8 `gorm:"column:default;type:tinyint(1);default:2;comment:默认:1为默认,2为不默认" json:"default"`
|
||||
}
|
||||
|
||||
type Default struct {
|
||||
Id int64 `json:"id" gorm:"id"`
|
||||
Default uint8 `gorm:"column:default;type:tinyint(1);default:2;comment:默认:1为默认,2为不默认" json:"default"`
|
||||
}
|
||||
|
||||
type WebStatus struct {
|
||||
Id int64 `json:"id" gorm:"id"`
|
||||
Status int32 `json:"status" gorm:"status"` // 状态,1是正常,2为申请,3为一审核,4为二审核中,5为拒绝申请,6为审核失败,7为删除
|
||||
}
|
||||
|
||||
type WebAddressInfo struct {
|
||||
Id int64 `json:"id" gorm:"id"`
|
||||
District string `json:"district" gorm:"district"` // 地区
|
||||
DistrictIds string `json:"district_ids" gorm:"district_ids"` // 地区IDS
|
||||
Default uint8 `gorm:"column:default;type:tinyint(1);default:2;comment:默认:1为默认,2为不默认" json:"default"`
|
||||
Address string `json:"address" gorm:"address"` // 地址
|
||||
Name string `json:"name" gorm:"name"` // 收货人姓名
|
||||
Mobile string `json:"mobile" gorm:"mobile"` // 收货人手机
|
||||
Status int32 `json:"status" gorm:"status"` // 状态,1是正常,2为申请,3为一审核,4为二审核中,5为拒绝申请,6为审核失败,7为删除
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user