package <%=packageName%>.config;

import <%=packageName%>.oss.builder.OssBuilder;
import <%=packageName%>.service.OssConfigService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Oss配置类
 *
 */
@Configuration
public class OssConfiguration {

	private final OssProperties ossProperties;

	private final OssConfigService ossConfigService;

	@Bean
	public OssBuilder ossBuilder() {
		return new OssBuilder(ossProperties, ossConfigService);
	}

    public OssConfiguration(OssProperties ossProperties, OssConfigService ossConfigService) {
        this.ossProperties = ossProperties;
        this.ossConfigService = ossConfigService;
    }
}
