蛋蛋星球-制度模式
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

71 řádky
1.6 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 "支付宝"
  56. case FinWithdrawApplyWithdrawKindForWx:
  57. return "微信"
  58. default:
  59. return "未知状态"
  60. }
  61. }