remove 移除通用上传下载接口与配置

This commit is contained in:
疯狂的狮子li
2021-08-04 19:11:39 +08:00
parent 08db4a5f53
commit 79bf332c53
12 changed files with 3 additions and 686 deletions

View File

@ -9,7 +9,7 @@ import org.springframework.stereotype.Component;
/**
* 读取项目相关配置
*
*
* @author ruoyi
*/
@ -32,45 +32,13 @@ public class RuoYiConfig
/** 实例演示开关 */
private boolean demoEnabled;
/** 上传路径 */
@Getter
private static String profile;
/** 获取地址开关 */
@Getter
private static boolean addressEnabled;
public void setProfile(String profile)
{
RuoYiConfig.profile = profile;
}
public void setAddressEnabled(boolean addressEnabled)
{
RuoYiConfig.addressEnabled = addressEnabled;
}
/**
* 获取头像上传路径
*/
public static String getAvatarPath()
{
return getProfile() + "/avatar";
}
/**
* 获取下载路径
*/
public static String getDownloadPath()
{
return getProfile() + "/download/";
}
/**
* 获取上传路径
*/
public static String getUploadPath()
{
return getProfile() + "/upload";
}
}