From bae42356684138720f1613b8d887034bf4d62cc0 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Tue, 24 Oct 2023 14:15:14 +0800
Subject: [PATCH] 版本管理

---
 src/main/java/cc/mrbird/febs/rabbit/producter/AgentProducer.java |   41 ++++++++++++++++++++---------------------
 1 files changed, 20 insertions(+), 21 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/rabbit/producter/AgentProducer.java b/src/main/java/cc/mrbird/febs/rabbit/producter/AgentProducer.java
index 1ba5bd2..3d5c6c0 100644
--- a/src/main/java/cc/mrbird/febs/rabbit/producter/AgentProducer.java
+++ b/src/main/java/cc/mrbird/febs/rabbit/producter/AgentProducer.java
@@ -3,6 +3,7 @@
 import cc.mrbird.febs.rabbit.constants.ExchangeConstants;
 import cc.mrbird.febs.rabbit.constants.RouteKeyConstants;
 import cc.mrbird.febs.rabbit.enumerates.RabbitQueueEnum;
+import cn.hutool.core.util.IdUtil;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.amqp.AmqpException;
 import org.springframework.amqp.core.Message;
@@ -45,30 +46,28 @@
 
     }
 
-    public void sendOrderReturn(Long id) {
-        log.info("发送消息:{}", id);
-        CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
-        rabbitTemplate.convertAndSend(ExchangeConstants.EXCHANGE_DEFAULT, RouteKeyConstants.ROUTE_KEY_DEFAULT, id, correlationData);
-    }
-
-    public void sendOrderCancelDelayMsg(Long id, Long times) {
-        log.info("发送自动取消订单消息:{}, {}", id, times);
-        rabbitTemplate.convertAndSend(RabbitQueueEnum.ORDER_CANCEL_DELAY_TTL.getExchange(), RabbitQueueEnum.ORDER_CANCEL_DELAY_TTL.getRoute(), id, new MessagePostProcessor() {
-            @Override
-            public Message postProcessMessage(Message message) throws AmqpException {
-                message.getMessageProperties().setExpiration(String.valueOf(times));
-                return message;
-            }
-        });
+    /**
+     * 添加会员
+     */
+    public void sendAddRobotMsg(String inviteId) {
+        log.info("添加会员:{}", inviteId);
+        CorrelationData correlationData = new CorrelationData(IdUtil.simpleUUID());
+        rabbitTemplate.convertAndSend(RabbitQueueEnum.IM_REDBAG_GET_ADD_ROBOT.getExchange(),
+                RabbitQueueEnum.IM_REDBAG_GET_ADD_ROBOT.getRoute(),
+                inviteId,
+                correlationData);
     }
 
     /**
-     * 发送代理自动升级消息
-     *
-     * @param memberId
+     * 自动发送
      */
-    public void sendAutoLevelUpMsg(@NotNull Long memberId) {
-        log.info("发送代理自动升级消息:{}", memberId);
-        rabbitTemplate.convertAndSend(ExchangeConstants.EXCHANGE_DEFAULT, RouteKeyConstants.ROUTE_KEY_DEFAULT, memberId);
+    public void sendAutoSendMsg(Long groupId) {
+        log.info("自动发送:{}", groupId);
+        CorrelationData correlationData = new CorrelationData(IdUtil.simpleUUID());
+        rabbitTemplate.convertAndSend(RabbitQueueEnum.IM_REDBAG_AUTO_SEND.getExchange(),
+                RabbitQueueEnum.IM_REDBAG_AUTO_SEND.getRoute(),
+                groupId,
+                correlationData);
     }
+
 }

--
Gitblit v1.9.1