package com.yifu.cloud.plus.v1.yifu.auth.util.config;

import com.yifu.cloud.plus.v1.yifu.auth.util.weixin.WeixinLoignProperties;
import com.yifu.cloud.plus.v1.yifu.auth.util.weixin.callback.WeixinLoginCallbackController;
import com.yifu.cloud.plus.v1.yifu.auth.util.weixin.service.WeixinLoginService;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 微信登录自动装置
 */
//@Configuration
// @EnableConfigurationProperties({WeixinLoignProperties.class})
public class WeixinLoginBeanAutoConfiguration {

	@Bean("weixinLoginService")
    public WeixinLoginService loginService() {
		return new WeixinLoginService();
	}
	
	@Bean
	public WeixinLoginCallbackController loginCallbackController() {
		return new WeixinLoginCallbackController();
	}
}
