package com.sino.mci.channel.wechat.personal;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(WechatPersonalProperties.class)
public class WechatPersonalAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public WechatPersonalChannelAdapter wechatPersonalChannelAdapter(WechatPersonalProperties properties) {
        return new WechatPersonalChannelAdapter(properties);
    }
}
