mirror of https://gitee.com/stylefeng/roses
【8.0】【sys】【org】更新缓存配置的常量类
parent
5caf7ae4a9
commit
a61d09e384
|
@ -67,9 +67,4 @@ public interface SysConstants {
|
|||
*/
|
||||
String ADMIN_USER_ACCOUNT = "admin";
|
||||
|
||||
/**
|
||||
* 缓存前缀:组织机构是否包含下级的标识
|
||||
*/
|
||||
String SYS_ORG_SUB_FLAG_CACHE_PREFIX = "SYS:ORG:HAVE_SUB_FLAG:";
|
||||
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ package cn.stylefeng.roses.kernel.sys.modular.org.cache.subflag;
|
|||
|
||||
import cn.hutool.cache.impl.TimedCache;
|
||||
import cn.stylefeng.roses.kernel.cache.memory.AbstractMemoryCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.sys.api.constants.SysConstants;
|
||||
import cn.stylefeng.roses.kernel.sys.modular.org.constants.OrgConstants;
|
||||
|
||||
/**
|
||||
* 组织机构是否包含下级的缓存
|
||||
|
@ -18,7 +18,7 @@ public class SysOrgSubFlagMemoryCache extends AbstractMemoryCacheOperator<Boolea
|
|||
|
||||
@Override
|
||||
public String getCommonKeyPrefix() {
|
||||
return SysConstants.SYS_ORG_SUB_FLAG_CACHE_PREFIX;
|
||||
return OrgConstants.SYS_ORG_SUB_FLAG_CACHE_PREFIX;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
package cn.stylefeng.roses.kernel.sys.modular.org.cache.subflag;
|
||||
|
||||
import cn.stylefeng.roses.kernel.cache.redis.AbstractRedisCacheOperator;
|
||||
import cn.stylefeng.roses.kernel.sys.api.constants.SysConstants;
|
||||
import cn.stylefeng.roses.kernel.sys.modular.org.constants.OrgConstants;
|
||||
import org.springframework.data.redis.core.RedisTemplate;
|
||||
|
||||
/**
|
||||
|
@ -18,7 +18,7 @@ public class SysOrgSubFlagRedisCache extends AbstractRedisCacheOperator<Boolean>
|
|||
|
||||
@Override
|
||||
public String getCommonKeyPrefix() {
|
||||
return SysConstants.SYS_ORG_SUB_FLAG_CACHE_PREFIX;
|
||||
return OrgConstants.SYS_ORG_SUB_FLAG_CACHE_PREFIX;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -32,6 +32,11 @@ package cn.stylefeng.roses.kernel.sys.modular.org.constants;
|
|||
*/
|
||||
public interface OrgConstants {
|
||||
|
||||
/**
|
||||
* 缓存前缀:组织机构是否包含下级的标识
|
||||
*/
|
||||
String SYS_ORG_SUB_FLAG_CACHE_PREFIX = "SYS:ORG:HAVE_SUB_FLAG:";
|
||||
|
||||
/**
|
||||
* 没有上级机构时候的上级机构名称
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue