package com.slodon.bbc.starter.thirdParty.config;

import com.slodon.bbc.starter.thirdParty.SlodonThirdParty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.StringRedisTemplate;

/**
 * 自动配置类
 */
@Configuration
public class SlodonThirdPartyAutoConfiguration {

    /**
     * 对外提供一个对接三方接口的bean
     *
     * @param stringRedisTemplate redis工具
     * @return
     */
    @Bean
    public SlodonThirdParty slodonThirdParty(StringRedisTemplate stringRedisTemplate){
        return new SlodonThirdParty(stringRedisTemplate);
    }
}
