From d1ae49d2c2631b00c9f993f7b602fa3f511c80f3 Mon Sep 17 00:00:00 2001 From: huhu5 Date: Thu, 23 Oct 2025 06:53:27 +0000 Subject: [PATCH 1/2] =?UTF-8?q?add=20=E5=9C=B0=E6=96=B9=E5=9C=B0=E6=96=B9.?= =?UTF-8?q?=20=E5=9C=B0=E6=96=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: huhu5 --- "\345\234\260\346\226\271\345\234\260\346\226\271" | 1 + 1 file changed, 1 insertion(+) create mode 100644 "\345\234\260\346\226\271\345\234\260\346\226\271" diff --git "a/\345\234\260\346\226\271\345\234\260\346\226\271" "b/\345\234\260\346\226\271\345\234\260\346\226\271" new file mode 100644 index 0000000..39aff8d --- /dev/null +++ "b/\345\234\260\346\226\271\345\234\260\346\226\271" @@ -0,0 +1 @@ +撒地方放 \ No newline at end of file -- Gitee From 2ce81f8a54dd73ca4625fee213437548fee2cdad Mon Sep 17 00:00:00 2001 From: huhu5 Date: Thu, 23 Oct 2025 06:53:52 +0000 Subject: [PATCH 2/2] dfdf sdf Signed-off-by: huhu5 --- 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