From ab01a0f611c0adb97662bc8f548ca4a911ec8045 Mon Sep 17 00:00:00 2001 From: chenrui <1187576398@qq.com> Date: 星期五, 06 六月 2025 17:37:39 +0800 Subject: [PATCH] 分页修改 --- src/main/java/com/ruoyi/common/constant/Constants.java | 48 +++++++++++++++++++++++++++--------------------- 1 files changed, 27 insertions(+), 21 deletions(-) diff --git a/src/main/java/com/ruoyi/common/constant/Constants.java b/src/main/java/com/ruoyi/common/constant/Constants.java index 6deff23..d12c995 100644 --- a/src/main/java/com/ruoyi/common/constant/Constants.java +++ b/src/main/java/com/ruoyi/common/constant/Constants.java @@ -1,5 +1,6 @@ package com.ruoyi.common.constant; +import java.util.Locale; import io.jsonwebtoken.Claims; /** @@ -18,6 +19,16 @@ * GBK 瀛楃闆� */ public static final String GBK = "GBK"; + + /** + * 绯荤粺璇█ + */ + public static final Locale DEFAULT_LOCALE = Locale.SIMPLIFIED_CHINESE; + + /** + * www涓诲煙 + */ + public static final String WWW = "www."; /** * http璇锋眰 @@ -60,25 +71,25 @@ public static final String LOGIN_FAIL = "Error"; /** - * 楠岃瘉鐮� redis key + * 鎵�鏈夋潈闄愭爣璇� */ - public static final String CAPTCHA_CODE_KEY = "captcha_codes:"; + public static final String ALL_PERMISSION = "*:*:*"; /** - * 鐧诲綍鐢ㄦ埛 redis key + * 绠$悊鍛樿鑹叉潈闄愭爣璇� */ - public static final String LOGIN_TOKEN_KEY = "login_tokens:"; + public static final String SUPER_ADMIN = "admin"; /** - * 闃查噸鎻愪氦 redis key + * 瑙掕壊鏉冮檺鍒嗛殧绗� */ - public static final String REPEAT_SUBMIT_KEY = "repeat_submit:"; + public static final String ROLE_DELIMETER = ","; /** - * 闄愭祦 redis key + * 鏉冮檺鏍囪瘑鍒嗛殧绗� */ - public static final String RATE_LIMIT_KEY = "rate_limit:"; - + public static final String PERMISSION_DELIMETER = ","; + /** * 楠岃瘉鐮佹湁鏁堟湡锛堝垎閽燂級 */ @@ -125,16 +136,6 @@ public static final String JWT_AUTHORITIES = "authorities"; /** - * 鍙傛暟绠$悊 cache key - */ - public static final String SYS_CONFIG_KEY = "sys_config:"; - - /** - * 瀛楀吀绠$悊 cache key - */ - public static final String SYS_DICT_KEY = "sys_dict:"; - - /** * 璧勬簮鏄犲皠璺緞 鍓嶇紑 */ public static final String RESOURCE_PREFIX = "/profile"; @@ -155,13 +156,18 @@ public static final String LOOKUP_LDAPS = "ldaps:"; /** + * 鑷姩璇嗗埆json瀵硅薄鐧藉悕鍗曢厤缃紙浠呭厑璁歌В鏋愮殑鍖呭悕锛岃寖鍥磋秺灏忚秺瀹夊叏锛� + */ + public static final String[] JSON_WHITELIST_STR = { "org.springframework", "com.ruoyi" }; + + /** * 瀹氭椂浠诲姟鐧藉悕鍗曢厤缃紙浠呭厑璁歌闂殑鍖呭悕锛屽鍏朵粬闇�瑕佸彲浠ヨ嚜琛屾坊鍔狅級 */ - public static final String[] JOB_WHITELIST_STR = { "com.ruoyi" }; + public static final String[] JOB_WHITELIST_STR = { "com.ruoyi.framework.task" }; /** * 瀹氭椂浠诲姟杩濊鐨勫瓧绗� */ public static final String[] JOB_ERROR_STR = { "java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml", - "org.springframework", "org.apache", "com.ruoyi.common.utils.file" }; + "org.springframework", "org.apache", "com.ruoyi.common.utils.file", "com.ruoyi.framework.config", "com.ruoyi.project.tool" }; } -- Gitblit v1.9.3