Browse Source

updaste

master
dengbiao 1 month ago
parent
commit
9a10ec776e
3 changed files with 99 additions and 1 deletions
  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 View File

@@ -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 View File

@@ -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 View File

@@ -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 "未知状态"
}
}

Loading…
Cancel
Save