疯狂的狮子li
2021-07-17 7e90d845987127718d34f27b4ebfdcafaa8e4e4e
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
package com.ruoyi.oss.config;
 
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
 
import java.io.Serializable;
 
/**
 * 云存储配置信息
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "cloud-storage")
public class CloudStorageConfig implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 类型 1:七牛 2:阿里云 3:腾讯云 4: minio
     */
    private Integer type;
 
    /**
     * 七牛绑定的域名
     */
    private String domain;
 
    /**
     * 七牛路径前缀
     */
    private String prefix;
 
    /**
     * 七牛ACCESS_KEY
     */
    private String accessKey;
 
    /**
     * 七牛SECRET_KEY
     */
    private String secretKey;
 
    /**
     * 七牛存储空间名
     */
    private String bucketName;
 
    /**
     * 腾讯云AppId
     */
    private Integer qcloudAppId;
 
    /**
     * 腾讯云SecretId
     */
    private String qcloudSecretId;
 
    /**
     * 腾讯云SecretKey
     */
    private String qcloudSecretKey;
 
    /**
     * 腾讯云COS所属地区
     */
    private String qcloudRegion;
 
}