From bc693b509ba4e7a12558a0d7726c9568bb0b7f2b Mon Sep 17 00:00:00 2001 From: dengbiao Date: Wed, 13 Nov 2024 19:50:26 +0800 Subject: [PATCH] update --- enum/user_wallet_fllow.go | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 enum/user_wallet_fllow.go diff --git a/enum/user_wallet_fllow.go b/enum/user_wallet_fllow.go new file mode 100644 index 0000000..92f859a --- /dev/null +++ b/enum/user_wallet_fllow.go @@ -0,0 +1,26 @@ +package enum + +// UserWalletFlowTransferType 用户钱包流水-类型 +type UserWalletFlowTransferType int + +const ( + AdministratorOperationAddBalance UserWalletFlowTransferType = iota + 1 + AdministratorOperationSubBalance + EggEnergyExchangeAccountBalance + AccountBalanceExchangeEggEnergy +) + +func (kind UserWalletFlowTransferType) String() string { + switch kind { + case AdministratorOperationAddBalance: + return "管理员操作增加余额" + case AdministratorOperationSubBalance: + return "管理员操作扣除余额" + case EggEnergyExchangeAccountBalance: + return "蛋蛋能量兑换余额" + case AccountBalanceExchangeEggEnergy: + return "余额兑换蛋蛋能量" + default: + return "未知状态" + } +}