蛋蛋星球-制度模式
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

39 rindas
987 B

  1. package enum
  2. // UserWalletFlowTransferType 用户钱包流水-类型
  3. type UserWalletFlowTransferType int
  4. const (
  5. AdministratorOperationAddBalance UserWalletFlowTransferType = iota + 1
  6. AdministratorOperationSubBalance
  7. EggEnergyExchangeAccountBalance
  8. AccountBalanceExchangeEggEnergy
  9. UserSendRedPackage
  10. UserReceiveRedPackage
  11. UserWithdrawApply
  12. UserWithdrawBad
  13. )
  14. func (kind UserWalletFlowTransferType) String() string {
  15. switch kind {
  16. case AdministratorOperationAddBalance:
  17. return "管理员操作增加余额"
  18. case AdministratorOperationSubBalance:
  19. return "管理员操作扣除余额"
  20. case EggEnergyExchangeAccountBalance:
  21. return "蛋蛋能量兑换余额"
  22. case AccountBalanceExchangeEggEnergy:
  23. return "余额兑换蛋蛋能量"
  24. case UserSendRedPackage:
  25. return "发送红包"
  26. case UserReceiveRedPackage:
  27. return "领取红包"
  28. case UserWithdrawApply:
  29. return "用户提现"
  30. case UserWithdrawBad:
  31. return "提现失败"
  32. default:
  33. return "未知状态"
  34. }
  35. }