From de9a308fe7c5bb15d6050cafd7e29e8aa850eb2b Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Sun, 28 Aug 2022 02:28:48 +0800
Subject: [PATCH] fix
---
src/main/java/cc/mrbird/febs/rabbit/RabbitConfiguration.java | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 105 insertions(+), 0 deletions(-)
diff --git a/src/main/java/cc/mrbird/febs/rabbit/RabbitConfiguration.java b/src/main/java/cc/mrbird/febs/rabbit/RabbitConfiguration.java
index 8c44b0d..7501014 100644
--- a/src/main/java/cc/mrbird/febs/rabbit/RabbitConfiguration.java
+++ b/src/main/java/cc/mrbird/febs/rabbit/RabbitConfiguration.java
@@ -43,4 +43,109 @@
public Binding defaultBind() {
return BindingBuilder.bind(onlineTransferQueue()).to(onlineTransferExchange()).with(QueueEnum.ONLINE_TRANSFER.getRoute());
}
+
+ @Bean
+ public DirectExchange distribProfitExchange() {
+ return new DirectExchange(QueueEnum.DISTRIB_PROFIT.getExchange());
+ }
+
+ @Bean
+ public Queue distribProfitQueue() {
+ return new Queue(QueueEnum.DISTRIB_PROFIT.getQueue());
+ }
+
+ @Bean
+ public Binding distribProfitBind() {
+ return BindingBuilder.bind(distribProfitQueue()).to(distribProfitExchange()).with(QueueEnum.DISTRIB_PROFIT.getRoute());
+ }
+
+ // === 用户购买奖励 start ===
+ @Bean
+ public DirectExchange userBuyRewardExchange() {
+ return new DirectExchange(QueueEnum.USER_BUY_REWARD.getExchange());
+ }
+
+ @Bean
+ public Queue userBuyRewardQueue() {
+ return new Queue(QueueEnum.USER_BUY_REWARD.getQueue());
+ }
+
+ @Bean
+ public Binding userBuyRewardBind() {
+ return BindingBuilder.bind(userBuyRewardQueue()).to(userBuyRewardExchange()).with(QueueEnum.USER_BUY_REWARD.getRoute());
+ }
+ // === 用户购买奖励 end ===
+
+
+ // === nft卡牌盲盒 start ===
+ @Bean
+ public DirectExchange nftBoxExchange() {
+ return new DirectExchange(QueueEnum.NFT_BOX.getExchange());
+ }
+
+ @Bean
+ public Queue nftBoxQueue() {
+ return new Queue(QueueEnum.NFT_BOX.getQueue());
+ }
+
+ @Bean
+ public Binding nftBoxBind() {
+ return BindingBuilder.bind(nftBoxQueue()).to(nftBoxExchange()).with(QueueEnum.NFT_BOX.getRoute());
+ }
+ // === nft卡牌盲盒 end ===
+
+
+ // === 业绩树 start ===
+ @Bean
+ public DirectExchange achieveTreeExchange() {
+ return new DirectExchange(QueueEnum.ACHIEVE_TREE.getExchange());
+ }
+
+ @Bean
+ public Queue achieveTreeQueue() {
+ return new Queue(QueueEnum.ACHIEVE_TREE.getQueue());
+ }
+
+ @Bean
+ public Binding achieveTreeBind() {
+ return BindingBuilder.bind(achieveTreeQueue()).to(achieveTreeExchange()).with(QueueEnum.ACHIEVE_TREE.getRoute());
+ }
+ // === 业绩树 end ===
+
+
+ // === 提现手续费 start ===
+ @Bean
+ public DirectExchange withdrawFeeExchange() {
+ return new DirectExchange(QueueEnum.WITHDRAW_FEE.getExchange());
+ }
+
+ @Bean
+ public Queue withdrawFeeQueue() {
+ return new Queue(QueueEnum.WITHDRAW_FEE.getQueue());
+ }
+
+ @Bean
+ public Binding withdrawFeeBind() {
+ return BindingBuilder.bind(withdrawFeeQueue()).to(withdrawFeeExchange()).with(QueueEnum.WITHDRAW_FEE.getRoute());
+ }
+ // === 提现手续费 end ===
+
+
+
+ // === tfc最新价 start ===
+ @Bean
+ public DirectExchange tfcNewPriceExchange() {
+ return new DirectExchange(QueueEnum.TFC_NEW_PRICE.getExchange());
+ }
+
+ @Bean
+ public Queue tfcNewPriceQueue() {
+ return new Queue(QueueEnum.TFC_NEW_PRICE.getQueue());
+ }
+
+ @Bean
+ public Binding tfcNewPriceBind() {
+ return BindingBuilder.bind(tfcNewPriceQueue()).to(tfcNewPriceExchange()).with(QueueEnum.TFC_NEW_PRICE.getRoute());
+ }
+ // === tfc最新价 end ===
}
--
Gitblit v1.9.1