From 75ab6a7eeb06f346aa05230ff66008eb191f5fe3 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Sun, 5 Jan 2025 05:51:11 +0800 Subject: [PATCH 1/3] update --- enum/user_virtual_amount_flow.go | 7 ++++++- rule/egg_energy/md/mq_egg_app.go | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/enum/user_virtual_amount_flow.go b/enum/user_virtual_amount_flow.go index 3b3c7dc..fd64559 100644 --- a/enum/user_virtual_amount_flow.go +++ b/enum/user_virtual_amount_flow.go @@ -22,6 +22,8 @@ const ( EggEnergyRecruitNewUsersReward EggEnergyMaliciousAccountFlashingDeductionPersonal EggEnergyMaliciousAccountFlashingDeductionTeam + EggEnergyMaliciousAccountFlashingDeductionRecoverPersonal + EggEnergyMaliciousAccountFlashingDeductionRecoverTeam ) func (kind UserVirtualAmountFlowTransferType) String() string { @@ -62,7 +64,10 @@ func (kind UserVirtualAmountFlowTransferType) String() string { return "恶意账户刷机个人蛋蛋能量扣除" case EggEnergyMaliciousAccountFlashingDeductionTeam: return "恶意账户刷机团队蛋蛋能量扣除" - + case EggEnergyMaliciousAccountFlashingDeductionRecoverPersonal: + return "恶意账户刷机个人蛋蛋能量还原" + case EggEnergyMaliciousAccountFlashingDeductionRecoverTeam: + return "恶意账户刷机团队蛋蛋能量还原" default: return "未知状态" } diff --git a/rule/egg_energy/md/mq_egg_app.go b/rule/egg_energy/md/mq_egg_app.go index c55c30a..dac29a3 100644 --- a/rule/egg_energy/md/mq_egg_app.go +++ b/rule/egg_energy/md/mq_egg_app.go @@ -12,6 +12,7 @@ const ( EggRoutKeyForSendFriendCircle = "egg_send_friend_circle" // 发送朋友圈 EggRoutKeyForComment = "egg_comment" // 评论 EggRoutKeyForPunishmentRecord = "egg_publish" // 处罚冻结用户上级 + EggRoutKeyForRecoverRecord = "egg_recover" // 返还冻结用户上级金额 ) type EggNewUserRegisterData struct { @@ -85,3 +86,7 @@ type EggRoutKeyForPunishmentRecordData struct { Uid int64 `json:"uid"` Amount string `json:"amount"` } + +type EggRoutKeyForRecoverRecordData struct { + Uid int64 `json:"uid"` +} From 410c5822c551fafd2a4002e57d2d1f673b701ff0 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Sun, 5 Jan 2025 07:02:19 +0800 Subject: [PATCH 2/3] update --- enum/user_virtual_amount_flow.go | 3 +++ rule/egg_energy/md/mq_egg_app.go | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/enum/user_virtual_amount_flow.go b/enum/user_virtual_amount_flow.go index fd64559..09f7a90 100644 --- a/enum/user_virtual_amount_flow.go +++ b/enum/user_virtual_amount_flow.go @@ -24,6 +24,7 @@ const ( EggEnergyMaliciousAccountFlashingDeductionTeam EggEnergyMaliciousAccountFlashingDeductionRecoverPersonal EggEnergyMaliciousAccountFlashingDeductionRecoverTeam + EggEnergyMaliciousAccountFlashingDeductionRestorePersonal ) func (kind UserVirtualAmountFlowTransferType) String() string { @@ -68,6 +69,8 @@ func (kind UserVirtualAmountFlowTransferType) String() string { return "恶意账户刷机个人蛋蛋能量还原" case EggEnergyMaliciousAccountFlashingDeductionRecoverTeam: return "恶意账户刷机团队蛋蛋能量还原" + case EggEnergyMaliciousAccountFlashingDeductionRestorePersonal: + return "恶意账户刷机个人蛋蛋能量恢复" default: return "未知状态" } diff --git a/rule/egg_energy/md/mq_egg_app.go b/rule/egg_energy/md/mq_egg_app.go index dac29a3..362a810 100644 --- a/rule/egg_energy/md/mq_egg_app.go +++ b/rule/egg_energy/md/mq_egg_app.go @@ -13,6 +13,7 @@ const ( EggRoutKeyForComment = "egg_comment" // 评论 EggRoutKeyForPunishmentRecord = "egg_publish" // 处罚冻结用户上级 EggRoutKeyForRecoverRecord = "egg_recover" // 返还冻结用户上级金额 + EggRoutKeyForRestoreRecord = "egg_restore" // 恢复返还冻结用户上级金额 ) type EggNewUserRegisterData struct { @@ -90,3 +91,7 @@ type EggRoutKeyForPunishmentRecordData struct { type EggRoutKeyForRecoverRecordData struct { Uid int64 `json:"uid"` } + +type EggRoutKeyForRestoreRecordData struct { + Uid int64 `json:"uid"` +} From 07b0af1515d6b4c030d1fe3c8f5e54eab5b009d3 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Mon, 6 Jan 2025 09:48:51 +0800 Subject: [PATCH 3/3] feat: add virtual flow type --- enum/user_virtual_amount_flow.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/enum/user_virtual_amount_flow.go b/enum/user_virtual_amount_flow.go index 09f7a90..1ff8f62 100644 --- a/enum/user_virtual_amount_flow.go +++ b/enum/user_virtual_amount_flow.go @@ -25,6 +25,7 @@ const ( EggEnergyMaliciousAccountFlashingDeductionRecoverPersonal EggEnergyMaliciousAccountFlashingDeductionRecoverTeam EggEnergyMaliciousAccountFlashingDeductionRestorePersonal + EggEnergyToAccountBalanceExchangeEggEnergy ) func (kind UserVirtualAmountFlowTransferType) String() string { @@ -71,6 +72,8 @@ func (kind UserVirtualAmountFlowTransferType) String() string { return "恶意账户刷机团队蛋蛋能量还原" case EggEnergyMaliciousAccountFlashingDeductionRestorePersonal: return "恶意账户刷机个人蛋蛋能量恢复" + case EggEnergyToAccountBalanceExchangeEggEnergy: + return "余额兑换个人蛋蛋能量" default: return "未知状态" }