物流笑嘻嘻
This commit is contained in:
22
business/model/order_pay_refund.go
Normal file
22
business/model/order_pay_refund.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type OrderPayRefund struct {
|
||||
ModelIDCULD
|
||||
RefundID string `orm:"column(refund_id);unique;size(48)" json:"refundID"` // 三方运单Id
|
||||
VendorRefundID string `orm:"column(vendor_refund_id);unique;size(48)" json:"vendorRefundID"` // 支付方退款成功后生成的退款单号
|
||||
VendorOrderID string `orm:"column(vendor_order_id);index;size(48)" json:"vendorOrderID"`
|
||||
TransactionID string `orm:"column(transaction_id);index;size(48)" json:"transactionID"` // 支付成功后,支付方生成的事务ID
|
||||
Status int `json:"status"`
|
||||
RefundCreatedAt time.Time `orm:"type(datetime);index" json:"payCreatedAt"`
|
||||
RefundFinishedAt *time.Time `orm:"type(datetime);null" json:"payFinishedAt"`
|
||||
RefundFee int `json:"refundFee"`
|
||||
OriginalData string `orm:"type(text)" json:"-"`
|
||||
}
|
||||
|
||||
func (v *OrderPayRefund) TableUnique() [][]string {
|
||||
return [][]string{
|
||||
[]string{"ID"},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user