From 8cd39f7b84b2d5fc628e028db4c6f1ee75095b23 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Wed, 27 Nov 2024 18:18:03 +0800 Subject: [PATCH] add batch send message --- rule/egg_energy/md/mq.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rule/egg_energy/md/mq.go b/rule/egg_energy/md/mq.go index 2c11772..8c25573 100644 --- a/rule/egg_energy/md/mq.go +++ b/rule/egg_energy/md/mq.go @@ -1,6 +1,7 @@ package md const EggEnergyExchange = "egg.energy" +const IMEggEnergyExchange = "im.egg.energy" const ( EggEnergyRoutKeyForStarLevelDividend = "star_level_dividend" // 星级分红 @@ -11,6 +12,7 @@ const ( EggEnergyRoutKeyForAutoExchangeGreenEnergyToTeam = "auto_exchange_egg_energy_to_team" // 自动兑换团队蛋蛋能量 EggEnergyRoutKeyForEggEnergyFundData = "fund_data" // 资金汇入 EggEnergyRoutKeyForPlatformRevenueData = "platform_revenue_data" // 平台收入 + IMEggEnergyRoutKeyForBatchSendMessageData = "batch_send_message_data" // 批量发送信息 ) type EggEnergyStructForSignIn struct { @@ -56,3 +58,11 @@ type EggEnergyStructForEggEnergyFundData struct { ID int `json:"id"` 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"` // 消息内容 +}