蛋蛋星球-制度模式
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

93 righe
2.4 KiB

  1. package enum
  2. // FinWithdrawApplyState 提现单状态
  3. type FinWithdrawApplyState int
  4. const (
  5. FinWithdrawApplyStateForApply FinWithdrawApplyState = iota
  6. FinWithdrawApplyStateForPass
  7. FinWithdrawApplyStateForSuccess
  8. FinWithdrawApplyStateForBad
  9. FinWithdrawApplyStateForIng
  10. )
  11. func (kind FinWithdrawApplyState) String() string {
  12. switch kind {
  13. case FinWithdrawApplyStateForApply:
  14. return "申请中"
  15. case FinWithdrawApplyStateForPass:
  16. return "通过"
  17. case FinWithdrawApplyStateForSuccess:
  18. return "完成"
  19. case FinWithdrawApplyStateForBad:
  20. return "失败"
  21. case FinWithdrawApplyStateForIng:
  22. return "处理中"
  23. default:
  24. return "未知状态"
  25. }
  26. }
  27. // FinWithdrawApplyReason 提现单驳回理由
  28. type FinWithdrawApplyReason int
  29. const (
  30. FinWithdrawApplyReasonForNotRule FinWithdrawApplyReason = iota + 1
  31. FinWithdrawApplyReasonForAccountAbnormal
  32. FinWithdrawApplyReasonForFundAbnormal
  33. )
  34. func (kind FinWithdrawApplyReason) String() string {
  35. switch kind {
  36. case FinWithdrawApplyReasonForNotRule:
  37. return "当前账号不满足提现规则"
  38. case FinWithdrawApplyReasonForAccountAbnormal:
  39. return "账号异常"
  40. case FinWithdrawApplyReasonForFundAbnormal:
  41. return "资金异常"
  42. default:
  43. return "未知状态"
  44. }
  45. }
  46. // FinWithdrawApplyWithdrawKind 提现单提现方式
  47. type FinWithdrawApplyWithdrawKind int
  48. const (
  49. FinWithdrawApplyWithdrawKindForAli FinWithdrawApplyWithdrawKind = iota + 1
  50. FinWithdrawApplyWithdrawKindForWx
  51. )
  52. func (kind FinWithdrawApplyWithdrawKind) String() string {
  53. switch kind {
  54. case FinWithdrawApplyWithdrawKindForAli:
  55. return "alipay"
  56. case FinWithdrawApplyWithdrawKindForWx:
  57. return "wx"
  58. default:
  59. return "未知状态"
  60. }
  61. }
  62. // FinWithdrawApplyWithdrawConditionDissatisfyKind 提现不满足条件类型
  63. type FinWithdrawApplyWithdrawConditionDissatisfyKind int
  64. const (
  65. FinWithdrawApplyWithdrawConditionDissatisfyKindNotRealName = iota + 1
  66. FinWithdrawApplyWithdrawConditionDissatisfyKindNotEnoughLevel
  67. FinWithdrawApplyWithdrawConditionDissatisfyKindNotInTime
  68. )
  69. func (kind FinWithdrawApplyWithdrawConditionDissatisfyKind) String() string {
  70. switch kind {
  71. case FinWithdrawApplyWithdrawConditionDissatisfyKindNotRealName:
  72. return "用户未实名"
  73. case FinWithdrawApplyWithdrawConditionDissatisfyKindNotEnoughLevel:
  74. return "用户未达到提现等级"
  75. case FinWithdrawApplyWithdrawConditionDissatisfyKindNotInTime:
  76. return "不在提现时间"
  77. default:
  78. return "未知错误"
  79. }
  80. }