//package com.yn.bftl.thirdparty.config.rabbit;
//
//import org.springframework.amqp.core.Binding;
//import org.springframework.amqp.core.BindingBuilder;
//import org.springframework.amqp.core.DirectExchange;
//import org.springframework.amqp.core.Queue;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @author huabiao
// * @create 2021/12/6  15:34
// **/
//@Configuration
//public class SmallProgramMessageRabbitConfig {
//
//    private static final String REGISTER_QUEUE_NAME = "small_program_message.queue";
//    private static final String REGISTER_EXCHANGE_NAME = "small_program_message.exchange";
//    private static final String ROUTING_KEY = "small_program_message.routing_key";
//
//    @Bean
//    public Queue SmallProgramMessageQueue() {
//        return new Queue(REGISTER_QUEUE_NAME,true);
//    }
//
//    @Bean
//    DirectExchange SmallProgramMessageExchange() {
//        return new DirectExchange(REGISTER_EXCHANGE_NAME);
//    }
//
//    @Bean
//    Binding SmallProgramMessageBinding() {
//        return BindingBuilder.bind(SmallProgramMessageQueue()).to(SmallProgramMessageExchange()).with(ROUTING_KEY);
//    }
//}
