package com.mindskip.xzs.configuration;
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.stereotype.Component;
|
|
/**
|
* 读取项目相关配置
|
*
|
* @author ruoyi
|
*/
|
@Component
|
@ConfigurationProperties(prefix = "upload")
|
public class RuoYiConfig
|
{
|
|
/** 上传路径 */
|
private String url;
|
|
public String getUrl() {
|
return url;
|
}
|
|
public void setUrl(String url) {
|
this.url = url;
|
}
|
|
public void setProfile(String profile)
|
{
|
url = profile;
|
}
|
|
|
/**
|
* 获取导入上传路径
|
*/
|
public String getImportPath()
|
{
|
return url + "/import";
|
}
|
|
/**
|
* 获取头像上传路径
|
*/
|
public String getAvatarPath()
|
{
|
return url + "/avatar";
|
}
|
|
/**
|
* 获取下载路径
|
*/
|
public String getDownloadPath()
|
{
|
return url + "/download/";
|
}
|
|
/**
|
* 获取上传路径
|
*/
|
public String getUploadPath()
|
{
|
return url + "/upload";
|
}
|
}
|