refactor: 分组添加 userId.
This commit is contained in:
@@ -21,6 +21,8 @@ public interface Const extends com.orion.lang.constant.Const, FieldConst, CnCons
|
||||
|
||||
String INTRANET_IP = "内网IP";
|
||||
|
||||
Long SYSTEM_USER_ID = 0L;
|
||||
|
||||
Long ROOT_PARENT_ID = 0L;
|
||||
|
||||
Integer DEFAULT_SORT = 10;
|
||||
|
||||
@@ -581,6 +581,18 @@ public class RedisMaps extends RedisUtils {
|
||||
return valuesJson(key.getKey(), (Class<V>) key.getType());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取所有值 json
|
||||
*
|
||||
* @param key key
|
||||
* @param define define
|
||||
* @param <V> V
|
||||
* @return values
|
||||
*/
|
||||
public static <V> List<V> valuesJson(String key, CacheKeyDefine define) {
|
||||
return valuesJson(key, (Class<V>) define.getType());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取所有值 json
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user