diff --git a/enum/sys_cfg.go b/enum/sys_cfg.go index 94bfd71..6960a19 100644 --- a/enum/sys_cfg.go +++ b/enum/sys_cfg.go @@ -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 "未知" + } +} diff --git a/enum/user_wallet_fllow.go b/enum/user_wallet_fllow.go index 92f859a..4c1bdd6 100644 --- a/enum/user_wallet_fllow.go +++ b/enum/user_wallet_fllow.go @@ -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 "未知状态" } diff --git a/enum/withdraw_apply.go b/enum/withdraw_apply.go new file mode 100644 index 0000000..c2ba3de --- /dev/null +++ b/enum/withdraw_apply.go @@ -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 "未知状态" + } +}