fix
Helius
2022-08-28 89994d97e754cbb8e35df942bbc01823d8c7a225
fix
1 files modified
66 ■■■■■ changed files
src/main/java/cc/mrbird/febs/rabbit/RabbitConfiguration.java 66 ●●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/rabbit/RabbitConfiguration.java
@@ -29,72 +29,6 @@
        return new RabbitTemplate(connectionFactory);
    }
    @Bean
    public DirectExchange onlineTransferExchange() {
        return new DirectExchange(QueueEnum.ONLINE_TRANSFER.getExchange());
    }
    @Bean
    public Queue onlineTransferQueue() {
        return new Queue(QueueEnum.ONLINE_TRANSFER.getQueue());
    }
    @Bean
    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() {