bilibili-backup/app/service/openplatform/ticket-sales/model/consts/order.go
2019-04-22 02:59:20 +00:00

42 lines
1.2 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package consts
//订单常量
const (
OrderTypeNormal = 1 //普通订单
OrderTypeGroup = 2 //拼团订单
OrderTypeDistrib = 4 //分销订单(已废弃)
OrderStatusUnpaid = 1 //未付款
OrderStatusPaid = 2 //已付款
OrderStatusRefunded = 3 //已退款
OrderStatusCancel = 4 //已取消
SubStatusUnpaid = 1 //未付款
SubStatusClose = 2 //已取消-系统关闭
SubStatusPaid = 3 //已付款-待出票
//4-6为退款状态已拆出为refundStatus7-8为已废弃付款子状态
SubStatusCompleted = 9 //已完成
SubStatusUnshipped = 10 //已待发货
SubStatusShipped = 11 //已付款-待收货
SubStatusCancel = 12 //已取消-用户取消(待启用)
RefundStatusNone = 0 //无退款
RefundStatusPtRefunding = 1 //部分退款中
RefundStatusPtRefunded = 2 //部分已退款
RefundStatusRefunding = 3 //退款中
RefundStatusRefunded = 4 //已退款
RefundTxStatusCreated = 1 //退款流水创建
RefundTxStatusSucc = 2 //退款流水处理成功
)
var (
//OrderTypes 订单类型
OrderTypes = map[int16]string{
OrderTypeNormal: "普通",
OrderTypeGroup: "拼团",
//Deprecated
OrderTypeDistrib: "分销",
}
)