Ver código fonte

add batch send message

master
shenjiachi 3 dias atrás
pai
commit
8cd39f7b84
1 arquivos alterados com 10 adições e 0 exclusões
  1. +10
    -0
      rule/egg_energy/md/mq.go

+ 10
- 0
rule/egg_energy/md/mq.go Ver arquivo

@@ -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"` // 消息内容
}

Carregando…
Cancelar
Salvar