yangys
2024-04-07 a87afa1be0961724a05cdf14321f0d8fd55efb98
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
package com.qianwen.core.boot.props;
 
import org.springframework.boot.context.properties.ConfigurationProperties;
 
@ConfigurationProperties("blade.file")
/* loaded from: blade-core-boot-9.3.0.0-SNAPSHOT.jar:org/springblade/core/boot/props/BladeFileProperties.class */
public class BladeFileProperties {
    private boolean remoteMode = false;
    private String uploadDomain = "http://127.0.0.1:8999";
    private String remotePath = System.getProperty("user.dir") + "/target/blade";
    private String uploadPath = "/upload";
    private String downloadPath = "/download";
    private Boolean compress = false;
    private Double compressScale = Double.valueOf(2.0d);
    private Boolean compressFlag = false;
    private String realPath = System.getProperty("user.dir");
    private String contextPath = "/";
 
    public void setRemoteMode(final boolean remoteMode) {
        this.remoteMode = remoteMode;
    }
 
    public void setUploadDomain(final String uploadDomain) {
        this.uploadDomain = uploadDomain;
    }
 
    public void setRemotePath(final String remotePath) {
        this.remotePath = remotePath;
    }
 
    public void setUploadPath(final String uploadPath) {
        this.uploadPath = uploadPath;
    }
 
    public void setDownloadPath(final String downloadPath) {
        this.downloadPath = downloadPath;
    }
 
    public void setCompress(final Boolean compress) {
        this.compress = compress;
    }
 
    public void setCompressScale(final Double compressScale) {
        this.compressScale = compressScale;
    }
 
    public void setCompressFlag(final Boolean compressFlag) {
        this.compressFlag = compressFlag;
    }
 
    public void setRealPath(final String realPath) {
        this.realPath = realPath;
    }
 
    public void setContextPath(final String contextPath) {
        this.contextPath = contextPath;
    }
 
    public boolean isRemoteMode() {
        return this.remoteMode;
    }
 
    public String getUploadDomain() {
        return this.uploadDomain;
    }
 
    public String getRemotePath() {
        return this.remotePath;
    }
 
    public String getUploadPath() {
        return this.uploadPath;
    }
 
    public String getDownloadPath() {
        return this.downloadPath;
    }
 
    public Boolean getCompress() {
        return this.compress;
    }
 
    public Double getCompressScale() {
        return this.compressScale;
    }
 
    public Boolean getCompressFlag() {
        return this.compressFlag;
    }
 
    public String getRealPath() {
        return this.realPath;
    }
 
    public String getContextPath() {
        return this.contextPath;
    }
 
    public String getUploadRealPath() {
        return (this.remoteMode ? this.remotePath : this.realPath) + this.uploadPath;
    }
 
    public String getUploadCtxPath() {
        return this.contextPath + this.uploadPath;
    }
}