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;
|
}
|
}
|