From 6d959c0e2c777f3cb1f4f9d692eb8997eb736ba5 Mon Sep 17 00:00:00 2001
From: Hentua <wangdoubleone@gmail.com>
Date: Thu, 25 Jan 2024 00:14:54 +0800
Subject: [PATCH] fix
---
src/main/java/cc/mrbird/febs/common/configure/RabbitConfigure.java | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 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 50797b6..3dc6481 100644
--- a/src/main/java/cc/mrbird/febs/common/configure/RabbitConfigure.java
+++ b/src/main/java/cc/mrbird/febs/common/configure/RabbitConfigure.java
@@ -122,4 +122,36 @@
return BindingBuilder.bind(orderReturnMoneyQueue()).to(orderReturnMoneyExchange()).with(RabbitQueueEnum.ORDER_RETURN_MONEY.getRoute());
}
+
+ @Bean
+ public DirectExchange orderCouponExchange() {
+ return new DirectExchange(RabbitQueueEnum.ORDER_COUPON.getExchange());
+ }
+
+ @Bean
+ public Queue orderCouponQueue() {
+ return new Queue(QueueConstants.ORDER_COUPON);
+ }
+
+ @Bean
+ public Binding orderCouponBind() {
+ 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());
+ }
+
}
--
Gitblit v1.9.1