Documentation ¶
Index ¶
- Constants
- func OrderStatus2Pb(orderStatus string) int64
- func OrderStatus2Web(orderStatus int64) string
- func PayStatus2Pb(payStatus string) int64
- func PayStatus2Web(payStatus int64) string
- func PayType2Pb(payType string) int64
- func PayType2Web(payType int64) string
- func RefundStatus2Pb(payStatus string) int64
- func RefundStatus2Web(payStatus int64) string
- func ReturnStatus2Pb(returnStatus string) int64
- func ReturnStatus2Web(returnStatus int64) string
Constants ¶
View Source
const ( StatusOrdered = 0 Ordered = "ordered" StatusUnpaid = 1 Unpaied = "unpaid" StatusPaid = 2 Paid = "paid" StatusUnshipped = 3 Unshipped = "unshipped" StatusShipping = 4 Shipping = "shipping" StatusShipped = 5 Shipped = "shipped" StatusConfirmed = 6 Confirmed = "confirmed" StatusUnrated = 7 Unrated = "unrated" StatusRated = 8 Rated = "rated" StatusCompleted = 9 Completed = "completed" StatusCanceled = 10 Canceled = "canceled" StatusClosed = 11 Closed = "closed" StatusDeleted = 12 Deleted = "deleted" StatusReturning = 13 Returning = "returning" StatusReturned = 14 Returned = "returned" )
View Source
const ( PayTypeUnpaid = 0 Unpaid = "unpaid" PayTypeAli = 1 Alipay = "alipay" PayTypeWx = 2 Wechatpay = "wechatpay" PayTypePaypal = 3 Paypal = "paypal" )
支付方式:0->未支付;1->支付宝;2->微信; 3->paypal
View Source
const ( TradeNotPay = 0 TradeSuccess = 1 TradeClosed = 2 TradeRefundErr = 3 TradeRefundSuc = 4 TradeApprove = 5 TradeNotPayS = "notpay" TradeSuccessS = "success" TradeClosedS = "closed" TradeRefundErrS = "refunderr" TradeRefundSucS = "refundsucc" TradeApproveS = "approve" )
支付状态: 0->待付款;1->已付款;2->已关闭;3->退款异常;4->已退款;5->o同意支付
View Source
const ( RefundProcessing = 0 // PROCESSING RefundSuccess = 1 //"SUCCESS" RefundClosed = 2 //"CLOSED" RefundAbnormal = 3 //"ABNORMAL" RefundInit = 4 // INIT RefundProcessingS = "processing" // PROCESSING RefundSuccessS = "success" //"SUCCESS" RefundClosedS = "closed" //"CLOSED" RefundAbnormalS = "abnormal" //"ABNORMAL" RefundInitS = "init" )
View Source
const ( ReturnUnhandled = 0 // 未处理 ReturnUnhandledS = "unhandled" // 未处理 ReturnReturning = 1 // 退货中 ReturnReturningS = "returning" // 退货中 ReturnReturned = 2 // 已收货完成 ReturnReturnedS = "returned" // 已收货完成 ReturnRejected = 3 // 已拒绝 ReturnRejectedS = "rejected" // 已拒绝 ReturnRefunding = 4 // 退款ing ReturnRefundingS = "refunding" // 退款ing ReturnRefunded = 5 // 已退款 ReturnRefundedS = "refunded" // 已退款 ReturnRefundErr = 6 // 退款异常 ReturnRefundErrS = "refunderr" // 退款异常 ReturnClosed = 7 // 已取消 ReturnClosedS = "closed" // 已取消 )
Variables ¶
This section is empty.
Functions ¶
func OrderStatus2Pb ¶
func OrderStatus2Web ¶
func PayStatus2Pb ¶
func PayStatus2Web ¶
func PayType2Pb ¶
func PayType2Web ¶
func RefundStatus2Pb ¶
func RefundStatus2Web ¶
func ReturnStatus2Pb ¶
func ReturnStatus2Web ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.