package com.sckw.file.config;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author lfdc
 * @description 文件上传获取配置yml信息
 * @date 2023-08-10 09:08:41
 */
@Getter
@Setter
@Component
@RefreshScope
@ConfigurationProperties(prefix = "aliyun.oss")
public class FileOssConfig {
    private OssData oss;

    @Data
    public static class OssData {

        private String endpoint;

        private String accessKeyId;

        private String secret;

        public String bucket;
    }
}
