Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from hiparker/development
Development
- Loading branch information
Showing
83 changed files
with
1,282 additions
and
4,239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
opsli-base-support/opsli-common/src/main/java/org/opsli/common/constants/DictConstants.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
opsli-base-support/opsli-common/src/main/java/org/opsli/common/constants/RedisConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
package org.opsli.common.constants; | ||
|
||
/** | ||
* Redis 常量 | ||
* {} 为项目名称 | ||
* @author 周鹏程 | ||
* @date 2021/12/10 19:52 | ||
*/ | ||
public final class RedisConstants { | ||
|
||
|
||
/** 字典名称 */ | ||
public static final String PREFIX_DICT_NAME = "hash#{}:dict:name:"; | ||
|
||
/** 字典值 VALUE */ | ||
public static final String PREFIX_DICT_VALUE = "hash#{}:dict:value:"; | ||
|
||
/** 菜单编号 */ | ||
public static final String PREFIX_MENU_CODE = "kv#{}:menu:code:"; | ||
|
||
/** 参数编号 */ | ||
public static final String PREFIX_OPTIONS_CODE = "hash#{}:options"; | ||
|
||
/** 用户搜索记录 */ | ||
public static final String PREFIX_HIS_USERNAME = "zset#{}:his:username:"; | ||
|
||
|
||
|
||
/** 用户ID */ | ||
public static final String PREFIX_USER_ID = "kv#{}:user_id:"; | ||
|
||
/** 用户ID 和 角色 */ | ||
public static final String PREFIX_USER_ID_AND_ROLES = "kv#{}:user_id:roles:"; | ||
|
||
/** 用户ID 和 默认角色 */ | ||
public static final String PREFIX_USER_ID_DEF_ROLE = "kv#{}:user_id:def_role_id:"; | ||
|
||
/** 用户ID 和 组织 */ | ||
public static final String PREFIX_USER_ID_ORGS = "kv#{}:user_id:orgs:"; | ||
|
||
/** 用户ID 和 默认组织 */ | ||
public static final String PREFIX_USER_ID_DEF_ORG = "kv#{}:user_id:def_org:"; | ||
|
||
/** 用户ID 和 权限 */ | ||
public static final String PREFIX_USER_ID_PERMISSIONS = "kv#{}:user_id:permissions:"; | ||
|
||
/** 用户ID 和 菜单 */ | ||
public static final String PREFIX_USER_ID_MENUS = "kv#{}:user_id:menus:"; | ||
|
||
/** 用户名 */ | ||
public static final String PREFIX_USERNAME = "kv#{}:username:"; | ||
|
||
|
||
|
||
/** 票据 */ | ||
public static final String PREFIX_TICKET = "set#{}:ticket:"; | ||
|
||
/** 账号失败次数 */ | ||
public static final String PREFIX_ACCOUNT_SLIP_COUNT = "kv#{}:account:slip:count:"; | ||
|
||
/** 账号失败锁定KEY */ | ||
public static final String PREFIX_ACCOUNT_SLIP_LOCK = "kv#{}:account:slip:lock:"; | ||
|
||
|
||
|
||
|
||
private RedisConstants(){} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.