state_access.go 934 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package constant
  2. const (
  3. RwDirectionUnknown = iota
  4. RwDirectionRecharge // 充值
  5. RwDirectionWithdraw // 提现
  6. )
  7. func GetRwDirectionName(i int) string {
  8. v, ok := RwNameMap[i]
  9. if ok {
  10. return v
  11. }
  12. return "未知"
  13. }
  14. var RwNameMap = map[int]string{
  15. RwDirectionRecharge: "充值",
  16. RwDirectionWithdraw: "提现",
  17. }
  18. // 状态:0 待审核(转账中) 1 审核通过 2 完成转出/转入 3 审核不通过 4 转账失败
  19. const (
  20. RwStateWaiting = iota // 待审核
  21. RwStatePass // 审核通过 - 待提现
  22. RwStateFinish // 充值/提现完成
  23. RwStateReject // 驳回-待退款
  24. RwStateSystemFail // 系统提现失败-待退款
  25. RwStateReturnSuccess // 退回完成
  26. )
  27. const (
  28. WithdrawStatePending = 0 // 待提现处理
  29. WithdrawStateFinish = 1 // 提现处理完成
  30. )
  31. const (
  32. RwCallbackStateWaiting = iota
  33. RwCallbackStateFinish
  34. RwCallbackStateFail
  35. )