Documentation ¶
Index ¶
Constants ¶
View Source
const ( OrderTypeNormal = 1 //普通订单 OrderTypeGroup = 2 //拼团订单 OrderTypeDistrib = 4 //分销订单(已废弃) OrderStatusUnpaid = 1 //未付款 OrderStatusPaid = 2 //已付款 OrderStatusRefunded = 3 //已退款 OrderStatusCancel = 4 //已取消 SubStatusUnpaid = 1 //未付款 SubStatusClose = 2 //已取消-系统关闭 SubStatusPaid = 3 //已付款-待出票 //4-6为退款状态,已拆出为refundStatus,7-8为已废弃付款子状态 SubStatusCompleted = 9 //已完成 SubStatusUnshipped = 10 //已待发货 SubStatusShipped = 11 //已付款-待收货 SubStatusCancel = 12 //已取消-用户取消(待启用) RefundStatusNone = 0 //无退款 RefundStatusPtRefunding = 1 //部分退款中 RefundStatusPtRefunded = 2 //部分已退款 RefundStatusRefunding = 3 //退款中 RefundStatusRefunded = 4 //已退款 RefundTxStatusCreated = 1 //退款流水创建 RefundTxStatusSucc = 2 //退款流水处理成功 )
订单常量
View Source
const ( PayStatusPaying = "PAYING" // 待支付 PayStatusOverdue = "OVERDUE" // 已过期 PayStatusClose = "CLOSED" // 支付关闭 PayStatusFail = "FAIL" // 支付失败 PayStatusSuccess = "SUCCESS" // 支付成功 PayStatusFinished = "FINISHED" // 交易成功 )
支付状态
View Source
const ( DefaultBuyNumLimit = 8 //默认单张订单购买限制 BuyerInfoTel = 1 //需要手机号 BuyerInfoPerID = 2 //需要身份证号 BuyerInfoPerPic = 3 //需要身份证图片(未实现) DeliverTypeNone = 1 //不配送 DeliverTypeSelf = 2 //自取 DeliverTypeExpress = 3 //快递配送 TicketTypePaper = 1 //纸质票 TicketTypeElec = 2 //电子票 TicketTypeExt = 3 //外部票(电子票) TicketTypeExch = 12 //兑换票(未实现,实为纸质票+自取) PickSeatYes = 1 //选座项目 PickSeatNo = 0 //不选座项目 )
项目相关状态
View Source
const ( PromoWaitShelf int16 = 1 //待上架 PromoUpShelf int16 = 2 //已上架 PromoDelShelf int16 = 3 //废弃 PromoFinishShelf int16 = 4 //已结束 DoUpShelf int16 = 1 //上架 DoDelShelf int16 = 2 //废弃 GroupDoing int16 = 0 //拼团中 GroupSuccess int16 = 1 //拼团成功 GroupFailed int16 = 2 //拼团失败 PromoOrderUnpaid int16 = 1 //待支付 PromoOrderPaid int16 = 2 //已支付 PromoOrderRefund int16 = 3 //已退款 PromoOrderCancel int16 = 4 //已取消 )
拼团常量
View Source
const ( OpTypeOrder int16 = 0 // 0 下单减库存 OpTypePaid int16 = 1 // 1 订单支付解锁库存 OpTypeRefund int16 = 2 // 退票补充库存(3为退 voucher 减库存,已弃用) OpTypeReserve int16 = 4 // 预留扣库存 OpTypeConfirm int16 = 5 // 确认预留解锁库存 OpTypeActive int16 = 7 // 场次激活重置库存 OpTypeBaseDecr int16 = 10 // 基础库存减少 OpTypeBaseIncr int16 = 11 // 基础库存增加 OpTypePrivDecr int16 = 12 // 活动库存减少 OpTypePrivIncr int16 = 13 // 活动库存增加 OpTypePrivInit int16 = 14 // 活动库存初始化 )
库存操作日志 opType 常量
View Source
const ( TkStatusUnchecked = 0 //未检票 TkStatusChecked = 1 //已检票 TkStatusExpired = 2 //已过期 TkStatusRefunded = 3 //已退票 TkStatusRefunding = 4 //退票中 TkStatusRefundFail = 5 //退票失败 TkStatusSended = 6 //已转赠 )
票状态常量
View Source
const ( TkTypeOrder = 0 // 订单出票 TkTypeSystemSend = 1 // 系统赠票 TkTypeUserSend = 2 // 用户赠票 TkTypeDistrib = 3 // 票代分销 )
票类型: 0-订单出票, 1-系统赠票, 2-用户赠票, 3-票代分销'
View Source
const ( TIDTypeSend = "send" TIDTypeRecv = "recv" )
ticket_id 类型
Variables ¶
View Source
var ( //OrderTypes 订单类型 OrderTypes = map[int16]string{ OrderTypeNormal: "普通", OrderTypeGroup: "拼团", OrderTypeDistrib: "分销", } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.