wzy
2022-08-27 fb6c882e19ea2d5a7d6ee6bbb7664bdb8b2f2503
src/main/java/cc/mrbird/febs/rabbit/RabbitConfiguration.java
@@ -75,4 +75,39 @@
        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 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 ===
}