ticket.go 615 B

1234567891011121314151617181920212223242526
  1. package consts
  2. //票状态常量
  3. const (
  4. TkStatusUnchecked = 0 //未检票
  5. TkStatusChecked = 1 //已检票
  6. TkStatusExpired = 2 //已过期
  7. TkStatusRefunded = 3 //已退票
  8. TkStatusRefunding = 4 //退票中
  9. TkStatusRefundFail = 5 //退票失败
  10. TkStatusSended = 6 //已转赠
  11. )
  12. // 票类型: 0-订单出票, 1-系统赠票, 2-用户赠票, 3-票代分销'
  13. const (
  14. TkTypeOrder = 0 // 订单出票
  15. TkTypeSystemSend = 1 // 系统赠票
  16. TkTypeUserSend = 2 // 用户赠票
  17. TkTypeDistrib = 3 // 票代分销
  18. )
  19. // ticket_id 类型
  20. const (
  21. TIDTypeSend = "send"
  22. TIDTypeRecv = "recv"
  23. )