Ver código fonte

updaste

master
dengbiao 4 horas atrás
pai
commit
9a10ec776e
3 arquivos alterados com 99 adições e 1 exclusões
  1. +17
    -1
      enum/sys_cfg.go
  2. +12
    -0
      enum/user_wallet_fllow.go
  3. +70
    -0
      enum/withdraw_apply.go

+ 17
- 1
enum/sys_cfg.go Ver arquivo

@@ -74,7 +74,7 @@ func (gt AliyunOss) String() string {
}
}

// AlipayConfig 支付宝支付枚举类型
// AlipayConfig 支付宝枚举类型
type AlipayConfig string

const (
@@ -104,3 +104,19 @@ func (gt AlipayConfig) String() string {
return "未知"
}
}

// WxConfig 微信枚举类型
type WxConfig string

const (
WxAppId = "wx_app_id"
)

func (gt WxConfig) String() string {
switch gt {
case WxAppId:
return "微信应用appid"
default:
return "未知"
}
}

+ 12
- 0
enum/user_wallet_fllow.go Ver arquivo

@@ -8,6 +8,10 @@ const (
AdministratorOperationSubBalance
EggEnergyExchangeAccountBalance
AccountBalanceExchangeEggEnergy
UserSendRedPackage
UserReceiveRedPackage
UserWithdrawApply
UserWithdrawBad
)

func (kind UserWalletFlowTransferType) String() string {
@@ -20,6 +24,14 @@ func (kind UserWalletFlowTransferType) String() string {
return "蛋蛋能量兑换余额"
case AccountBalanceExchangeEggEnergy:
return "余额兑换蛋蛋能量"
case UserSendRedPackage:
return "发送红包"
case UserReceiveRedPackage:
return "领取红包"
case UserWithdrawApply:
return "用户提现"
case UserWithdrawBad:
return "提现失败"
default:
return "未知状态"
}


+ 70
- 0
enum/withdraw_apply.go Ver arquivo

@@ -0,0 +1,70 @@
package enum

// FinWithdrawApplyState 提现单状态
type FinWithdrawApplyState int

const (
FinWithdrawApplyStateForApply FinWithdrawApplyState = iota
FinWithdrawApplyStateForPass
FinWithdrawApplyStateForSuccess
FinWithdrawApplyStateForBad
FinWithdrawApplyStateForIng
)

func (kind FinWithdrawApplyState) String() string {
switch kind {
case FinWithdrawApplyStateForApply:
return "申请中"
case FinWithdrawApplyStateForPass:
return "通过"
case FinWithdrawApplyStateForSuccess:
return "完成"
case FinWithdrawApplyStateForBad:
return "失败"
case FinWithdrawApplyStateForIng:
return "处理中"
default:
return "未知状态"
}
}

// FinWithdrawApplyReason 提现单驳回理由
type FinWithdrawApplyReason int

const (
FinWithdrawApplyReasonForNotRule FinWithdrawApplyReason = iota + 1
FinWithdrawApplyReasonForAccountAbnormal
FinWithdrawApplyReasonForFundAbnormal
)

func (kind FinWithdrawApplyReason) String() string {
switch kind {
case FinWithdrawApplyReasonForNotRule:
return "当前账号不满足提现规则"
case FinWithdrawApplyReasonForAccountAbnormal:
return "账号异常"
case FinWithdrawApplyReasonForFundAbnormal:
return "资金异常"
default:
return "未知状态"
}
}

// FinWithdrawApplyWithdrawKind 提现单提现方式
type FinWithdrawApplyWithdrawKind int

const (
FinWithdrawApplyWithdrawKindForAli FinWithdrawApplyWithdrawKind = iota + 1
FinWithdrawApplyWithdrawKindForWx
)

func (kind FinWithdrawApplyWithdrawKind) String() string {
switch kind {
case FinWithdrawApplyWithdrawKindForAli:
return "支付宝"
case FinWithdrawApplyWithdrawKindForWx:
return "微信"
default:
return "未知状态"
}
}

Carregando…
Cancelar
Salvar