| | |
| | | package com.ruoyi.oss.properties; |
| | | |
| | | import lombok.Data; |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * OSS云存储 配置属性 |
| | | * OSS对象存储 配置属性 |
| | | * |
| | | * @author Lion Li |
| | | */ |
| | | @Data |
| | | @Component |
| | | @ConfigurationProperties(prefix = "cloud-storage") |
| | | public class CloudStorageProperties { |
| | | |
| | | private QiniuProperties qiniu; |
| | | /** |
| | | * 域名 |
| | | */ |
| | | private String endpoint; |
| | | |
| | | private AliyunProperties aliyun; |
| | | /** |
| | | * 前缀 |
| | | */ |
| | | private String prefix; |
| | | |
| | | private QcloudProperties qcloud; |
| | | /** |
| | | * ACCESS_KEY |
| | | */ |
| | | private String accessKey; |
| | | |
| | | private MinioProperties minio; |
| | | /** |
| | | * SECRET_KEY |
| | | */ |
| | | private String secretKey; |
| | | |
| | | /** |
| | | * 存储空间名 |
| | | */ |
| | | private String bucketName; |
| | | |
| | | /** |
| | | * 存储区域 |
| | | */ |
| | | private String region; |
| | | |
| | | /** |
| | | * 是否https(Y=是,N=否) |
| | | */ |
| | | private String isHttps; |
| | | |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | private Date updateTime; |
| | | |
| | | } |