KKSU
2023-11-07 86d405a84645893cffd72934dc8e35a8b59e2fcf
src/main/java/cc/mrbird/febs/rabbit/producter/AgentProducer.java
@@ -58,4 +58,28 @@
                correlationData);
    }
    /**
     * 自动发送
     */
    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);
    }
    /**
     * 自动返还
     */
    public void sendOverdueSendMsg(Long redbagId) {
        log.info("自动返还:{}", redbagId);
        CorrelationData correlationData = new CorrelationData(IdUtil.simpleUUID());
        rabbitTemplate.convertAndSend(RabbitQueueEnum.IM_REDBAG_OVERDUE.getExchange(),
                RabbitQueueEnum.IM_REDBAG_OVERDUE.getRoute(),
                redbagId,
                correlationData);
    }
}