From e5e791a4a6adb0493137b68cbcde2b17b61a7ef2 Mon Sep 17 00:00:00 2001 From: q1 Date: Sat, 18 Oct 2025 03:49:00 +0000 Subject: [PATCH 1/2] add dsfds. Signed-off-by: q1 --- dsfds | 1 + 1 file changed, 1 insertion(+) create mode 100644 dsfds diff --git a/dsfds b/dsfds new file mode 100644 index 0000000..fe0c852 --- /dev/null +++ b/dsfds @@ -0,0 +1 @@ +sdf \ No newline at end of file -- Gitee From cafe0d9693226e092a0154f7865b270a31c09ad7 Mon Sep 17 00:00:00 2001 From: q1 Date: Sat, 18 Oct 2025 03:54:49 +0000 Subject: [PATCH 2/2] ss Signed-off-by: q1 --- PermissionConstants.java | 27 ++++++++++++++ ShiroConstants.java | 79 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 PermissionConstants.java create mode 100644 ShiroConstants.java diff --git a/PermissionConstants.java b/PermissionConstants.java new file mode 100644 index 0000000..7caf185 --- /dev/null +++ b/PermissionConstants.java @@ -0,0 +1,27 @@ +package com.ruoyi.common.constant; + +/** + * 权限通用常量 + * + * @author ruoyi + */ +public class PermissionConstants +{ + /** 新增权限 */ + public static final String ADD_PERMISSION = "add"; + + /** 修改权限 */ + public static final String EDIT_PERMISSION = "edit"; + + /** 删除权限 */ + public static final String REMOVE_PERMISSION = "remove"; + + /** 导出权限 */ + public static final String EXPORT_PERMISSION = "export"; + + /** 显示权限 */ + public static final String VIEW_PERMISSION = "view"; + + /** 查询权限 */ + public static final String LIST_PERMISSION = "list"; +} diff --git a/ShiroConstants.java b/ShiroConstants.java new file mode 100644 index 0000000..239d36f --- /dev/null +++ b/ShiroConstants.java @@ -0,0 +1,79 @@ +package com.ruoyi.common.constant; + +/** + * Shiro通用常量 + * + * @author ruoyi + */ +public class ShiroConstants +{ + /** + * 当前登录的用户 + */ + public static final String CURRENT_USER = "currentUser"; + + /** + * 用户名字段 + */ + public static final String CURRENT_USERNAME = "username"; + + /** + * 锁定屏幕字段 + */ + public static final String LOCK_SCREEN = "lockscreen"; + + /** + * 消息key + */ + public static final String MESSAGE = "message"; + + /** + * 错误key + */ + public static final String ERROR = "errorMsg"; + + /** + * 编码格式 + */ + public static final String ENCODING = "UTF-8"; + + /** + * 当前在线会话 + */ + public static final String ONLINE_SESSION = "online_session"; + + /** + * 验证码key + */ + public static final String CURRENT_CAPTCHA = "captcha"; + + /** + * 验证码开关 + */ + public static final String CURRENT_ENABLED = "captchaEnabled"; + + /** + * 验证码类型 + */ + public static final String CURRENT_TYPE = "captchaType"; + + /** + * 验证码 + */ + public static final String CURRENT_VALIDATECODE = "validateCode"; + + /** + * 验证码错误 + */ + public static final String CAPTCHA_ERROR = "captchaError"; + + /** + * 登录记录缓存 + */ + public static final String LOGIN_RECORD_CACHE = "loginRecordCache"; + + /** + * 系统活跃用户缓存 + */ + public static final String SYS_USERCACHE = "sys-userCache"; +} -- Gitee