|  |  |  | 
|---|
|  |  |  | 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()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @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()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Bean | 
|---|
|  |  |  | public DirectExchange getScoreMsgExchange() { | 
|---|
|  |  |  | return new DirectExchange(RabbitQueueEnum.GET_SCORE_MSG.getExchange()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Bean | 
|---|
|  |  |  | public Queue getScoreMsgQueue() { | 
|---|
|  |  |  | return new Queue(QueueConstants.GET_SCORE_MSG); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Bean | 
|---|
|  |  |  | public Binding getScoreMsgBind() { | 
|---|
|  |  |  | return BindingBuilder.bind(getScoreMsgQueue()).to(getScoreMsgExchange()).with(RabbitQueueEnum.GET_SCORE_MSG.getRoute()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Bean | 
|---|
|  |  |  | public DirectExchange vipLevelUp() { | 
|---|
|  |  |  | return new DirectExchange(RabbitQueueEnum.VIP_LEVEL_UP.getExchange()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Bean | 
|---|
|  |  |  | public Queue vipLevelUpQueue() { | 
|---|
|  |  |  | return new Queue(QueueConstants.VIP_LEVEL_UP); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Bean | 
|---|
|  |  |  | public Binding vipLevelUpBind() { | 
|---|
|  |  |  | return BindingBuilder.bind(vipLevelUpQueue()).to(vipLevelUp()).with(RabbitQueueEnum.VIP_LEVEL_UP.getRoute()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|