疯狂的狮子li
2021-07-23 7114fc27207ea8f8aca86dd91ff2acfe470c9349
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
package com.ruoyi.oss.properties;
 
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
 
/**
 * OSS云存储 配置属性
 *
 * @author Lion Li
 */
@Data
@Component
@ConfigurationProperties(prefix = "cloud-storage")
public class CloudStorageProperties {
 
    private QiniuProperties qiniu;
 
    private AliyunProperties aliyun;
 
    private QcloudProperties qcloud;
 
    private MinioProperties minio;
 
    /**
     * 阿里云 配置属性
     *
     * @author Lion Li
     */
    @Data
    @NoArgsConstructor
    public static class AliyunProperties {
 
        /**
         * 阿里云绑定的域名
         */
        private String endpoint;
 
        /**
         * 阿里云路径前缀
         */
        private String prefix;
 
        /**
         * 阿里云AccessKeyId
         */
        private String accessKeyId;
 
        /**
         * 阿里云AccessKeySecret
         */
        private String accessKeySecret;
 
        /**
         * 阿里云BucketName
         */
        private String bucketName;
 
    }
 
    /**
     * Minio 配置属性
     *
     * @author Lion Li
     */
    @Data
    @NoArgsConstructor
    public static class MinioProperties {
 
        /**
         * minio域名
         */
        private String endpoint;
 
        /**
         * minio ACCESS_KEY
         */
        private String accessKey;
 
        /**
         * minio SECRET_KEY
         */
        private String secretKey;
 
        /**
         * minio 存储空间名
         */
        private String bucketName;
 
    }
 
    /**
     * 腾讯云COS 配置属性
     *
     * @author Lion Li
     */
    @Data
    @NoArgsConstructor
    public static class QcloudProperties {
 
        /**
         * 腾讯云绑定的域名
         */
        private String endpoint;
 
        /**
         * 腾讯云路径前缀
         */
        private String prefix;
 
        /**
         * 腾讯云SecretId
         */
        private String secretId;
 
        /**
         * 腾讯云SecretKey
         */
        private String secretKey;
 
        /**
         * 腾讯云BucketName
         */
        private String bucketName;
 
        /**
         * 七牛是否使用https
         */
        private Boolean isHttps;
 
        /**
         * 腾讯云COS所属地区
         */
        private String region;
 
    }
 
    /**
     * 七牛云 配置属性
     *
     * @author Lion Li
     */
    @Data
    @NoArgsConstructor
    public static class QiniuProperties {
 
        /**
         * 七牛绑定的域名
         */
        private String domain;
 
        /**
         * 七牛路径前缀
         */
        private String prefix;
 
        /**
         * 七牛ACCESS_KEY
         */
        private String accessKey;
 
        /**
         * 七牛SECRET_KEY
         */
        private String secretKey;
 
        /**
         * 七牛存储空间名
         */
        private String bucketName;
 
        /**
         * 七牛存储区域
         */
        private String region;
 
        /**
         * 七牛是否使用https
         */
        private Boolean isHttps;
 
    }
 
}