+Pay4Order
This commit is contained in:
@@ -8,6 +8,14 @@ const (
|
||||
OrderDeliveryTypeSelfTake = "self" // 用户自提
|
||||
)
|
||||
|
||||
const (
|
||||
PayTypeWX = 1 // 微信支付
|
||||
|
||||
PayStatusNo = 0
|
||||
PayStatusYes = 1
|
||||
PayStatusRefund = 2
|
||||
)
|
||||
|
||||
type ModelTimeInfo struct {
|
||||
CreatedAt time.Time `orm:"auto_now_add;type(datetime)"`
|
||||
UpdatedAt time.Time `orm:"auto_now;type(datetime)"`
|
||||
@@ -260,6 +268,29 @@ type OrderComment struct {
|
||||
UpdatedOriginalMsg string `orm:"type(text)" json:"-"`
|
||||
}
|
||||
|
||||
type OrderPay struct {
|
||||
ModelIDCULD
|
||||
|
||||
VendorOrderID string `orm:"column(vendor_order_id);size(48)" json:"vendorOrderID"`
|
||||
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
|
||||
PayType int `json:"payType"`
|
||||
VendorPayType string `orm:"size(48)" json:"vendorPayType"`
|
||||
Status int `json:"status"`
|
||||
PayCreatedAt time.Time `orm:"type(datetime);index" json:"payCreatedAt"`
|
||||
PayFinishedAt *time.Time `orm:"type(datetime);null" json:"payFinishedAt"`
|
||||
|
||||
PrepayID string `orm:"column(prepay_id);unique;size(48)" json:"prepayID"`
|
||||
CodeURL string `orm:"column(code_url);size(256)" json:"codeURL"`
|
||||
PayOrderID string `orm:"column(pay_order_id);size(48)" json:"payOrderID"`
|
||||
OriginalData string `orm:"type(text)" json:"-"`
|
||||
}
|
||||
|
||||
func (v *OrderPay) TableIndex() [][]string {
|
||||
return [][]string{
|
||||
[]string{"VendorOrderID", "VendorID", "PayType", "DeletedAt"},
|
||||
}
|
||||
}
|
||||
|
||||
// 判断是否是购买平台自有物流
|
||||
// 对于京东,饿百来说,就是其自有的物流,对于微商城来说,是达达
|
||||
func IsWaybillPlatformOwn(bill *Waybill) bool {
|
||||
|
||||
Reference in New Issue
Block a user