From cd54774d6bbb67d031a66d6f9a31bcf324039697 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Fri, 29 Nov 2024 14:28:50 +0800 Subject: [PATCH] update --- rule/egg_energy/md/{mq.go => mq_egg_energy.go} | 10 ---------- rule/egg_energy/md/mq_im.go | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 10 deletions(-) rename rule/egg_energy/md/{mq.go => mq_egg_energy.go} (81%) create mode 100644 rule/egg_energy/md/mq_im.go diff --git a/rule/egg_energy/md/mq.go b/rule/egg_energy/md/mq_egg_energy.go similarity index 81% rename from rule/egg_energy/md/mq.go rename to rule/egg_energy/md/mq_egg_energy.go index 6125bbd..b4d6068 100644 --- a/rule/egg_energy/md/mq.go +++ b/rule/egg_energy/md/mq_egg_energy.go @@ -1,7 +1,6 @@ package md const EggEnergyExchange = "egg.energy" -const IMEggEnergyExchange = "im.egg.energy" const ( EggEnergyRoutKeyForStarLevelDividend = "star_level_dividend" // 星级分红 @@ -13,7 +12,6 @@ const ( EggEnergyRoutKeyForEggEnergyFundData = "fund_data" // 资金汇入 EggEnergyRoutKeyForPlatformRevenueData = "platform_revenue_data" // 平台收入 EggEnergyRoutKeyForDealUserVirtualCoinData = "deal_user_virtual_coin" // 处理给用户虚拟币积分 - IMEggEnergyRoutKeyForBatchSendMessageData = "batch_send_message_data" // 批量发送信息 ) type EggEnergyStructForSignIn struct { @@ -60,14 +58,6 @@ type EggEnergyStructForEggEnergyFundData struct { Amount string `json:"amount"` // 平台收入处理金额 } -type IMEggEnergyStructForBatchSendMessageData struct { - ReceiverType int `json:"receiver_type"` // 接受者类型 1:用户 2:群组 - MessageType int `json:"message_type"` // 消息类型(0未知 1文本 2表情 3语音消息 4图片 5文件 6地理位置 7指令推送 8自定义 9撤回消息 10红包消息) - SendId int64 `json:"send_id"` // 发送者 id - ReceiveIMId int64 `json:"receive_id"` // 接受者IM id - Content string `json:"content"` // 消息内容 -} - type EggEnergyStructForDealUserVirtualCoinData struct { Kind string `json:"kind"` Title string `json:"title"` diff --git a/rule/egg_energy/md/mq_im.go b/rule/egg_energy/md/mq_im.go new file mode 100644 index 0000000..c9b16b1 --- /dev/null +++ b/rule/egg_energy/md/mq_im.go @@ -0,0 +1,15 @@ +package md + +const IMEggEnergyExchange = "im.egg.energy" + +const ( + IMEggEnergyRoutKeyForBatchSendMessageData = "batch_send_message_data" // 批量发送信息 +) + +type IMEggEnergyStructForBatchSendMessageData struct { + ReceiverType int `json:"receiver_type"` // 接受者类型 1:用户 2:群组 + MessageType int `json:"message_type"` // 消息类型(0未知 1文本 2表情 3语音消息 4图片 5文件 6地理位置 7指令推送 8自定义 9撤回消息 10红包消息) + SendId int64 `json:"send_id"` // 发送者 id + ReceiveIMId int64 `json:"receive_id"` // 接受者IM id + Content string `json:"content"` // 消息内容 +}