| | |
| | | return new RabbitTemplate(connectionFactory); |
| | | } |
| | | |
| | | // === 业绩树 start === |
| | | @Bean |
| | | public DirectExchange onlineTransferExchange() { |
| | | return new DirectExchange(QueueEnum.ONLINE_TRANSFER.getExchange()); |
| | | public DirectExchange achieveTreeExchange() { |
| | | return new DirectExchange(QueueEnum.ACHIEVE_TREE.getExchange()); |
| | | } |
| | | |
| | | @Bean |
| | | public Queue onlineTransferQueue() { |
| | | return new Queue(QueueEnum.ONLINE_TRANSFER.getQueue()); |
| | | public Queue achieveTreeQueue() { |
| | | return new Queue(QueueEnum.ACHIEVE_TREE.getQueue()); |
| | | } |
| | | |
| | | @Bean |
| | | public Binding defaultBind() { |
| | | return BindingBuilder.bind(onlineTransferQueue()).to(onlineTransferExchange()).with(QueueEnum.ONLINE_TRANSFER.getRoute()); |
| | | 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 DirectExchange distribProfitExchange() { |
| | | 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 === |
| | | |
| | | |
| | | |
| | | // === 手续费分发 start === |
| | | @Bean |
| | | public DirectExchange feeDistributeExchange() { |
| | | return new DirectExchange(QueueEnum.DISTRIB_PROFIT.getExchange()); |
| | | } |
| | | |
| | | @Bean |
| | | public Queue distribProfitQueue() { |
| | | public Queue feeDistributeQueue() { |
| | | return new Queue(QueueEnum.DISTRIB_PROFIT.getQueue()); |
| | | } |
| | | |
| | | @Bean |
| | | public Binding distribProfitBind() { |
| | | return BindingBuilder.bind(distribProfitQueue()).to(distribProfitExchange()).with(QueueEnum.DISTRIB_PROFIT.getRoute()); |
| | | public Binding feeDistributeBind() { |
| | | return BindingBuilder.bind(feeDistributeQueue()).to(feeDistributeExchange()).with(QueueEnum.DISTRIB_PROFIT.getRoute()); |
| | | } |
| | | // === 手续费分发 end === |
| | | |
| | | // === 用户购买奖励 start === |
| | | |
| | | |
| | | // === 发送推荐规则奖励 start === |
| | | @Bean |
| | | public DirectExchange userBuyRewardExchange() { |
| | | return new DirectExchange(QueueEnum.USER_BUY_REWARD.getExchange()); |
| | | public DirectExchange invitePerkExchange() { |
| | | return new DirectExchange(QueueEnum.TFC_INVITE_PERK.getExchange()); |
| | | } |
| | | |
| | | @Bean |
| | | public Queue userBuyRewardQueue() { |
| | | return new Queue(QueueEnum.USER_BUY_REWARD.getQueue()); |
| | | public Queue invitePerkQueue() { |
| | | return new Queue(QueueEnum.TFC_INVITE_PERK.getQueue()); |
| | | } |
| | | |
| | | @Bean |
| | | public Binding userBuyRewardBind() { |
| | | return BindingBuilder.bind(userBuyRewardQueue()).to(userBuyRewardExchange()).with(QueueEnum.USER_BUY_REWARD.getRoute()); |
| | | public Binding invitePerkBind() { |
| | | return BindingBuilder.bind(invitePerkQueue()).to(invitePerkExchange()).with(QueueEnum.TFC_INVITE_PERK.getRoute()); |
| | | } |
| | | // === 用户购买奖励 end === |
| | | // === 发送推荐规则奖励 end === |
| | | |
| | | |
| | | // === nft卡牌盲盒 start === |
| | | |
| | | // === 发送节点奖励 start === |
| | | @Bean |
| | | public DirectExchange nftBoxExchange() { |
| | | return new DirectExchange(QueueEnum.NFT_BOX.getExchange()); |
| | | public DirectExchange nodePerkExchange() { |
| | | return new DirectExchange(QueueEnum.TFC_NODE_PERK.getExchange()); |
| | | } |
| | | |
| | | @Bean |
| | | public Queue nftBoxQueue() { |
| | | return new Queue(QueueEnum.NFT_BOX.getQueue()); |
| | | public Queue nodePerkQueue() { |
| | | return new Queue(QueueEnum.TFC_NODE_PERK.getQueue()); |
| | | } |
| | | |
| | | @Bean |
| | | public Binding nftBoxBind() { |
| | | return BindingBuilder.bind(nftBoxQueue()).to(nftBoxExchange()).with(QueueEnum.NFT_BOX.getRoute()); |
| | | public Binding nodePerkBind() { |
| | | return BindingBuilder.bind(nodePerkQueue()).to(nodePerkExchange()).with(QueueEnum.TFC_NODE_PERK.getRoute()); |
| | | } |
| | | // === nft卡牌盲盒 end === |
| | | // === 发送节点奖励 end === |
| | | |
| | | |
| | | |
| | | // === 发送复投 start === |
| | | @Bean |
| | | public DirectExchange nodeAgainExchange() { |
| | | return new DirectExchange(QueueEnum.TFC_NODE_AGAIN.getExchange()); |
| | | } |
| | | |
| | | @Bean |
| | | public Queue nodeAgainQueue() { |
| | | return new Queue(QueueEnum.TFC_NODE_AGAIN.getQueue()); |
| | | } |
| | | |
| | | @Bean |
| | | public Binding nodeAgainBind() { |
| | | return BindingBuilder.bind(nodeAgainQueue()).to(nodeAgainExchange()).with(QueueEnum.TFC_NODE_AGAIN.getRoute()); |
| | | } |
| | | // === 发送复投 end === |
| | | } |