package org.sky.resource.config;

import lombok.AllArgsConstructor;
import org.sky.core.literule.engine.RuleEngineExecutor;
import org.sky.core.oss.props.OssProperties;
import org.sky.resource.builder.OssBuilder;
import org.sky.resource.service.IOssService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Oss配置类
 *
 */
@Configuration(proxyBeanMethods = false)
@AllArgsConstructor
public class KdOssConfiguration {

	private final OssProperties ossProperties;

	private final IOssService ossService;

	private final RuleEngineExecutor ruleExecutor;

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