From 5edd20eeb792e3dcad99554046f6e3c41a2af430 Mon Sep 17 00:00:00 2001 From: Administrator <15274802129@163.com> Date: Fri, 09 May 2025 16:04:49 +0800 Subject: [PATCH] feat(mall): 添加核销记录功能 --- src/main/java/cc/mrbird/febs/common/configure/RabbitConfigure.java | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 48 insertions(+), 0 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/common/configure/RabbitConfigure.java b/src/main/java/cc/mrbird/febs/common/configure/RabbitConfigure.java index 32b3b5e..23a02f9 100644 --- a/src/main/java/cc/mrbird/febs/common/configure/RabbitConfigure.java +++ b/src/main/java/cc/mrbird/febs/common/configure/RabbitConfigure.java @@ -138,4 +138,52 @@ return BindingBuilder.bind(orderCouponQueue()).to(orderCouponExchange()).with(RabbitQueueEnum.ORDER_COUPON.getRoute()); } + + @Bean + public DirectExchange getScoreMsgExchange() { + return new DirectExchange(RabbitQueueEnum.GET_SCORE_MSG.getExchange()); + } + + @Bean + public Queue getScoreMsgQueue() { + return new Queue(QueueConstants.GET_SCORE_MSG); + } + + @Bean + public Binding getScoreMsgBind() { + return BindingBuilder.bind(getScoreMsgQueue()).to(getScoreMsgExchange()).with(RabbitQueueEnum.GET_SCORE_MSG.getRoute()); + } + + + @Bean + public DirectExchange vipLevelUp() { + return new DirectExchange(RabbitQueueEnum.VIP_LEVEL_UP.getExchange()); + } + + @Bean + public Queue vipLevelUpQueue() { + return new Queue(QueueConstants.VIP_LEVEL_UP); + } + + @Bean + public Binding vipLevelUpBind() { + return BindingBuilder.bind(vipLevelUpQueue()).to(vipLevelUp()).with(RabbitQueueEnum.VIP_LEVEL_UP.getRoute()); + } + + + @Bean + public DirectExchange activityOrderCheckExchange() { + return new DirectExchange(RabbitQueueEnum.ACTIVITY_ORDER_ITEM_CHECK.getExchange()); + } + + @Bean + public Queue activityOrderCheckQueue() { + return new Queue(RabbitQueueEnum.ACTIVITY_ORDER_ITEM_CHECK.getQueue()); + } + + @Bean + public Binding activityOrderCheckBind() { + return BindingBuilder.bind(activityOrderCheckQueue()).to(activityOrderCheckExchange()).with(RabbitQueueEnum.ACTIVITY_ORDER_ITEM_CHECK.getRoute()); + } + } -- Gitblit v1.9.1