package cn.reghao.oss.store.config;

import cn.reghao.oss.sdk.OssConsoleClient;
import cn.reghao.oss.store.config.props.OssProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author reghao
 * @date 2024-02-28 11:11:04
 */
@Configuration
public class BeansConfig {
    @Bean
    public OssConsoleClient ossConsoleClient(OssProperties ossProperties) {
        return new OssConsoleClient(ossProperties.getConsoleEndpoint());
    }
}
