package com.njzscloud.common.oss.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Getter
@Setter
@ConfigurationProperties("oss")
public class OSSProperties {
    private OSSType type;
    private MinioProperties minio;
    private AliProperties ali;

    @Getter
    @Setter
    public static class MinioProperties {
        private String endpoint;
        private String accessKey;
        private String secretKey;
        private String bucketName;
    }

    @Getter
    @Setter
    public static class AliProperties {
        private String region;
        private String endpoint;
        private String accessKey;
        private String secretKey;
        private String bucketName;
    }
}
