mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 07:19:46 +08:00
update 重写 OSS 模块相关实现 支持动态配置(页面配置)
This commit is contained in:
@ -1,5 +1,10 @@
|
||||
package com.ruoyi.oss.constant;
|
||||
|
||||
import com.ruoyi.oss.properties.CloudStorageProperties;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 云存储常量
|
||||
*
|
||||
@ -7,14 +12,33 @@ package com.ruoyi.oss.constant;
|
||||
*/
|
||||
public class CloudConstant {
|
||||
|
||||
/**
|
||||
* OSS模块KEY
|
||||
*/
|
||||
public static final String SYS_OSS_KEY = "sys_oss:";
|
||||
|
||||
/**
|
||||
* 云存储配置KEY
|
||||
*/
|
||||
public final static String CLOUD_STORAGE_CONFIG_KEY = "sys.oss.cloudStorageService";
|
||||
public static final String CLOUD_STORAGE_CONFIG_KEY = "CloudStorageConfig";
|
||||
|
||||
/**
|
||||
* 缓存配置KEY
|
||||
*/
|
||||
public static final String CACHE_CONFIG_KEY = SYS_OSS_KEY + CLOUD_STORAGE_CONFIG_KEY;
|
||||
|
||||
/**
|
||||
* 预览列表资源开关Key
|
||||
*/
|
||||
public final static String PEREVIEW_LIST_RESOURCE_KEY = "sys.oss.previewListResource";
|
||||
public static final String PEREVIEW_LIST_RESOURCE_KEY = "sys.oss.previewListResource";
|
||||
|
||||
/**
|
||||
* 系统数据ids
|
||||
*/
|
||||
public static final List<Integer> SYSTEM_DATA_IDS = Arrays.asList(1, 2, 3, 4);
|
||||
|
||||
public static String getPropertiesName(String key) {
|
||||
return key + CloudStorageProperties.class.getSimpleName();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user