zxl
9 天以前 0fb6b9d8d414822668c401a2b507df1fe6d1fa2d
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
package cn.lili.modules.system.entity.dto;
 
import cn.lili.common.utils.StringUtils;
import cn.lili.modules.file.entity.enums.OssEnum;
import lombok.Data;
 
import java.io.Serializable;
 
/**
 * OSS设置
 *
 * @author Chopper
 * @since 2020/11/26 15:50
 */
 
@Data
public class OssSetting implements Serializable {
 
    private static final long serialVersionUID = 2975271656230801861L;
 
    /**
     * oss类型
     */
    private String type;
 
    /**
     * 阿里云-域名
     */
    private String aliyunOSSEndPoint = "";
    /**
     * 阿里云-储存空间
     */
    private String aliyunOSSBucketName = "";
//    /**
//     * 阿里云-存放路径路径
//     */
//    private String aliyunOSSPicLocation = "";
    /**
     * 阿里云-密钥id
     */
    private String aliyunOSSAccessKeyId = "";
    /**
     * 阿里云-密钥
     */
    private String aliyunOSSAccessKeySecret = "";
 
 
    /**
     * minio服务地址
     */
    private String m_endpoint;
 
    /**
     * minio 前端请求地址
     */
    private String m_frontUrl;
 
    /**
     * minio用户名
     */
    private String m_accessKey;
 
    /**
     * minio密码
     */
    private String m_secretKey;
 
    /**
     * minio bucket名称
     */
    private String m_bucketName;
 
 
    /**
     * 华为云-发起者的Access Key
     *
     * @return
     */
 
    String huaweicloudOBSAccessKey;
    /**
     * 华为云-密钥
     */
    String huaweicloudOBSSecretKey;
    /**
     * 华为云OBS-节点
     */
    String huaweicloudOBSEndPoint;
 
    /**
     * 华为云OBS-桶
     */
    private String huaweicloudOBSBucketName = "";
 
    /**
     * 腾讯云 用户的 SecretId
     */
    String tencentCOSSecretId;
    /**
     * 腾讯云 用户的 SecretKey
     */
    String tencentCOSSecretKey;
    /**
     * 腾讯云 bucket 的地域
     */
    String tencentCOSRegion;
    /**
     * 腾讯云 bucket
     */
    String tencentCOSBucket;
    /**
     * 腾讯云-域名
     */
    private String tencentCOSEndPoint = "";
 
    public String getType() {
        //默认给阿里云oss存储类型
        if (StringUtils.isEmpty(type)) {
            return OssEnum.ALI_OSS.name();
        }
        return type;
    }
}