enum.go 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package model
  2. // enums.
  3. const (
  4. PlatformAndriod = 1
  5. PlatformWechatMp = 2
  6. PlatformSystem = 3
  7. SuitTypeAll = 0
  8. SuitTypeMvip = 10
  9. SubTypeOther = 0
  10. SubTypeContract = 1
  11. PayOrderTypeNormal = 0
  12. PayOrderTypeSub = 1
  13. PayOrderStatusPending = 0
  14. PayOrderStatusPaying = 1
  15. PayOrderStatusSuccess = 2
  16. PayOrderStatusFail = 3
  17. PaymentTypeAliPay = "alipay"
  18. PaymentTypeWechat = "wechat"
  19. UserChangeTypeRecharge = 1
  20. UserChangeTypeSystem = 2
  21. UserChangeTypeGift = 3
  22. UserChangeTypeDup = 4
  23. UserChangeTypeRenewVIp = 5
  24. UserChangeTypeSignContract = 6
  25. UserChangeTypeCancelContract = 7
  26. VipTypeVip = 1
  27. VipTypeAnnualVip = 2
  28. VipPayTypeNormal = 0
  29. VipPayTypeSub = 1
  30. PayChannelAli = "alipay"
  31. PayChannelWechat = "wechat"
  32. VipStatusActive = 1
  33. VipStatusExpired = 0
  34. YstPayWayQr = "1"
  35. YstPayTypeAliPay = "1"
  36. YstPayTypeWechat = "2"
  37. YstPayStatusPaied = "1"
  38. YstPayStatusPending = "0"
  39. YstTradeStateSuccess = "SUCCESS"
  40. YstTradeStateRefund = "REFUND"
  41. YstTradeStateNotPay = "NOTPAY"
  42. YstTradeStateClosed = "CLOSED"
  43. YstTradeStateAccept = "ACCEPT"
  44. YstTradeStatePayFail = "PAY_FAIL"
  45. YstResultSuccess = "0"
  46. YstResultFail = "998"
  47. YstResultSysErr = "999"
  48. YST_CONTRACT_TYPE_SIGN = "ADD"
  49. YST_CONTRSCT_TYPE_CANCEL = "DELETE"
  50. )