| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- package constant
- const (
- RwDirectionUnknown = iota
- RwDirectionRecharge // 充值
- RwDirectionWithdraw // 提现
- )
- func GetRwDirectionName(i int) string {
- v, ok := RwNameMap[i]
- if ok {
- return v
- }
- return "未知"
- }
- var RwNameMap = map[int]string{
- RwDirectionRecharge: "充值",
- RwDirectionWithdraw: "提现",
- }
- // 状态:0 待审核(转账中) 1 审核通过 2 完成转出/转入 3 审核不通过 4 转账失败
- const (
- RwStateWaiting = iota // 待审核
- RwStatePass // 审核通过 - 待提现
- RwStateFinish // 充值/提现完成
- RwStateReject // 驳回-待退款
- RwStateSystemFail // 系统提现失败-待退款
- RwStateReturnSuccess // 退回完成
- )
- const (
- WithdrawStatePending = 0 // 待提现处理
- WithdrawStateFinish = 1 // 提现处理完成
- )
- const (
- RwCallbackStateWaiting = iota
- RwCallbackStateFinish
- RwCallbackStateFail
- )
|