huaz
2023-01-09 5fd2ac11a530b5b7ddfcb2a40cf5d68fdde193be
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
/*
 *  Copyright 2019-2020 Zheng Jie
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package me.zhengjie.domain;
 
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
 
/**
 * 七牛云对象存储配置类
 * @author Zheng Jie
 * @date 2018-12-31
 */
@Data
@Entity
@Table(name = "tool_qiniu_config")
public class QiniuConfig implements Serializable {
 
    @Id
    @Column(name = "config_id")
    @ApiModelProperty(value = "ID")
    private Long id;
 
    @NotBlank
    @ApiModelProperty(value = "accessKey")
    private String accessKey;
 
    @NotBlank
    @ApiModelProperty(value = "secretKey")
    private String secretKey;
 
    @NotBlank
    @ApiModelProperty(value = "存储空间名称作为唯一的 Bucket 识别符")
    private String bucket;
 
    /**
     * Zone表示与机房的对应关系
     * 华东    Zone.zone0()
     * 华北    Zone.zone1()
     * 华南    Zone.zone2()
     * 北美    Zone.zoneNa0()
     * 东南亚    Zone.zoneAs0()
     */
    @NotBlank
    @ApiModelProperty(value = "Zone表示与机房的对应关系")
    private String zone;
 
    @NotBlank
    @ApiModelProperty(value = "外链域名,可自定义,需在七牛云绑定")
    private String host;
 
    @ApiModelProperty(value = "空间类型:公开/私有")
    private String type = "公开";
}