order.go 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package consts
  2. //订单常量
  3. const (
  4. OrderTypeNormal = 1 //普通订单
  5. OrderTypeGroup = 2 //拼团订单
  6. OrderTypeDistrib = 4 //分销订单(已废弃)
  7. OrderStatusUnpaid = 1 //未付款
  8. OrderStatusPaid = 2 //已付款
  9. OrderStatusRefunded = 3 //已退款
  10. OrderStatusCancel = 4 //已取消
  11. SubStatusUnpaid = 1 //未付款
  12. SubStatusClose = 2 //已取消-系统关闭
  13. SubStatusPaid = 3 //已付款-待出票
  14. //4-6为退款状态,已拆出为refundStatus,7-8为已废弃付款子状态
  15. SubStatusCompleted = 9 //已完成
  16. SubStatusUnshipped = 10 //已待发货
  17. SubStatusShipped = 11 //已付款-待收货
  18. SubStatusCancel = 12 //已取消-用户取消(待启用)
  19. RefundStatusNone = 0 //无退款
  20. RefundStatusPtRefunding = 1 //部分退款中
  21. RefundStatusPtRefunded = 2 //部分已退款
  22. RefundStatusRefunding = 3 //退款中
  23. RefundStatusRefunded = 4 //已退款
  24. RefundTxStatusCreated = 1 //退款流水创建
  25. RefundTxStatusSucc = 2 //退款流水处理成功
  26. )
  27. var (
  28. //OrderTypes 订单类型
  29. OrderTypes = map[int16]string{
  30. OrderTypeNormal: "普通",
  31. OrderTypeGroup: "拼团",
  32. //Deprecated
  33. OrderTypeDistrib: "分销",
  34. }
  35. )