添加快递
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type UserVendorOrder struct {
|
||||
ModelIDCUL
|
||||
UserId string `orm:"size(128);column(user_id);index" json:"userID"` // 用户ID
|
||||
@@ -79,3 +81,20 @@ type MakeOrderParamReq struct {
|
||||
OriginalFee float64 `json:"original_fee"` // 原价
|
||||
Increment float64 `json:"increment"` // 物流
|
||||
}
|
||||
|
||||
// UserOrderList 用户订单列表
|
||||
type UserOrderList struct {
|
||||
UserId string `orm:"size(128);column(user_id);index" json:"userID"` // 用户ID
|
||||
LocalWayBill string `orm:"size(128);column(local_way_bill);index" json:"localWayBill"` // 本地订单ID
|
||||
OtherWayBill string `orm:"size(128);column(other_way_bill);index" json:"otherWayBill"` // 第三方运单ID
|
||||
Type int `orm:"size(8);column(type)" json:"type"` // 快递公司
|
||||
ReceiveAddressID int64 `orm:"size(128);column(receive_address_id)" json:"receiveAddressID"` // 收件人地址ID
|
||||
SenderAddressID int64 `orm:"size(128);column(sender_address_id)" json:"senderAddressID"` // 寄件人地址ID
|
||||
CreatedAt time.Time `orm:"auto_now_add;type(datetime)" json:"createdAt"` // 创建时间
|
||||
OrderStatus int `orm:"size(8);column(order_status)" json:"orderType"` // 订单状态(1-待支付,2-支付失败,3-支付成功,4-取件,5-配送,6-,4-取消)
|
||||
ChannelFee float64 `orm:"column(channel_fee)" json:"channelFee"` // 渠道价
|
||||
SendUserName string `orm:"column(send_user_name)" json:"sendUserName"` // 发货人
|
||||
ReceiveUserName string `orm:"column(receive_user_name)" json:"receiveUserName"` // 收货人
|
||||
SenderAddress string `orm:"column(sender_address)" json:"senderAddress"` // 发货城市
|
||||
ReceiveAddress string `orm:"column(receive_address)" json:"receiveAddress"` // 收货城市
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user