| | |
| | | return BindingBuilder.bind(orderDelayQueueTtl()).to(delayTtlExchange()).with(RabbitQueueEnum.ORDER_CANCEL_DELAY_TTL.getRoute()); |
| | | } |
| | | |
| | | @Bean |
| | | public Queue autoLevelUpAgentQueue() { |
| | | return new Queue(QueueConstants.AGENT_AUTO_LEVEL_UP); |
| | | } |
| | | |
| | | @Bean |
| | | public Binding autoLevelUpBind() { |
| | | return BindingBuilder.bind(autoLevelUpAgentQueue()).to(defaultExchange()).with(RouteKeyConstants.ROUTE_KEY_DEFAULT); |
| | | } |
| | | |
| | | @Bean |
| | | public DirectExchange agentReturnMoneyExchange() { |
| | | return new DirectExchange(RabbitQueueEnum.AGENT_REUTRN_MONEY.getExchange()); |
| | | } |
| | | |
| | | @Bean |
| | | public Queue agentReturnMoneyQueue() { |
| | | return new Queue(QueueConstants.AGENT_RETURN_MONEY); |
| | | } |
| | | |
| | | @Bean |
| | | public Binding agentReturnMoneyBind() { |
| | | return BindingBuilder.bind(agentReturnMoneyQueue()).to(agentReturnMoneyExchange()).with(RabbitQueueEnum.AGENT_REUTRN_MONEY.getRoute()); |
| | | } |
| | | |
| | | |
| | | @Bean |
| | | public DirectExchange orderReturnMoneyExchange() { |
| | | return new DirectExchange(RabbitQueueEnum.ORDER_RETURN_MONEY.getExchange()); |
| | | } |
| | | |
| | | @Bean |
| | | public Queue orderReturnMoneyQueue() { |
| | | return new Queue(QueueConstants.ORDER_RETURN_MONEY); |
| | | } |
| | | |
| | | @Bean |
| | | public Binding orderReturnMoneyBind() { |
| | | return BindingBuilder.bind(orderReturnMoneyQueue()).to(orderReturnMoneyExchange()).with(RabbitQueueEnum.ORDER_RETURN_MONEY.getRoute()); |
| | | } |
| | | |
| | | // === 奖励分发 start === |
| | | @Bean |
| | | public DirectExchange mallCoinDirectRewardExchange() { |
| | | return new DirectExchange(RabbitQueueEnum.MALL_COIN_DIRECT_REWARD.getExchange()); |
| | | } |
| | | |
| | | @Bean |
| | | public Queue mallCoinDirectRewardQueue() { |
| | | return new Queue(RabbitQueueEnum.MALL_COIN_DIRECT_REWARD.getQueue()); |
| | | } |
| | | |
| | | @Bean |
| | | public Binding mallCoinDirectRewardBind() { |
| | | return BindingBuilder.bind(mallCoinDirectRewardQueue()).to(mallCoinDirectRewardExchange()).with(RabbitQueueEnum.MALL_COIN_DIRECT_REWARD.getRoute()); |
| | | } |
| | | // === 奖励分发 end === |
| | | |
| | | } |