| | |
| | | return BindingBuilder.bind(orderReturnMoneyQueue()).to(orderReturnMoneyExchange()).with(RabbitQueueEnum.ORDER_RETURN_MONEY.getRoute()); |
| | | } |
| | | |
| | | |
| | | @Bean |
| | | public DirectExchange orderCouponExchange() { |
| | | return new DirectExchange(RabbitQueueEnum.ORDER_COUPON.getExchange()); |
| | | } |
| | | |
| | | @Bean |
| | | public Queue orderCouponQueue() { |
| | | return new Queue(QueueConstants.ORDER_COUPON); |
| | | } |
| | | |
| | | @Bean |
| | | public Binding orderCouponBind() { |
| | | return BindingBuilder.bind(orderCouponQueue()).to(orderCouponExchange()).with(RabbitQueueEnum.ORDER_COUPON.getRoute()); |
| | | } |
| | | |
| | | } |