From aa638475e955207a5d5f76f9ec99415b5a18f5db Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期四, 25 八月 2022 12:30:32 +0800 Subject: [PATCH] update 同步 ruoyi 新功能 --- ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java | 213 +++++++++++++++++++---------------------------------- 1 files changed, 76 insertions(+), 137 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java b/ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java index 2dbdbe6..e634ed2 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java @@ -1,137 +1,76 @@ -package com.ruoyi.common.constant; - -import io.jsonwebtoken.Claims; - -/** - * 閫氱敤甯搁噺淇℃伅 - * - * @author ruoyi - */ -public class Constants -{ - /** - * UTF-8 瀛楃闆� - */ - public static final String UTF8 = "UTF-8"; - - /** - * GBK 瀛楃闆� - */ - public static final String GBK = "GBK"; - - /** - * http璇锋眰 - */ - public static final String HTTP = "http://"; - - /** - * https璇锋眰 - */ - public static final String HTTPS = "https://"; - - /** - * 閫氱敤鎴愬姛鏍囪瘑 - */ - public static final String SUCCESS = "0"; - - /** - * 閫氱敤澶辫触鏍囪瘑 - */ - public static final String FAIL = "1"; - - /** - * 鐧诲綍鎴愬姛 - */ - public static final String LOGIN_SUCCESS = "Success"; - - /** - * 娉ㄩ攢 - */ - public static final String LOGOUT = "Logout"; - - /** - * 娉ㄥ唽 - */ - public static final String REGISTER = "Register"; - - /** - * 鐧诲綍澶辫触 - */ - public static final String LOGIN_FAIL = "Error"; - - /** - * 楠岃瘉鐮佹湁鏁堟湡锛堝垎閽燂級 - */ - public static final Integer CAPTCHA_EXPIRATION = 2; - - /** - * 浠ょ墝 - */ - public static final String TOKEN = "token"; - - /** - * 浠ょ墝鍓嶇紑 - */ - public static final String TOKEN_PREFIX = "Bearer "; - - /** - * 浠ょ墝鍓嶇紑 - */ - public static final String LOGIN_USER_KEY = "login_user_key"; - - /** - * 鐢ㄦ埛ID - */ - public static final String JWT_USERID = "userid"; - - /** - * 鐢ㄦ埛鍚嶇О - */ - public static final String JWT_USERNAME = Claims.SUBJECT; - - /** - * 鐢ㄦ埛澶村儚 - */ - public static final String JWT_AVATAR = "avatar"; - - /** - * 鍒涘缓鏃堕棿 - */ - public static final String JWT_CREATED = "created"; - - /** - * 鐢ㄦ埛鏉冮檺 - */ - public static final String JWT_AUTHORITIES = "authorities"; - - /** - * 璧勬簮鏄犲皠璺緞 鍓嶇紑 - */ - public static final String RESOURCE_PREFIX = "/profile"; - - /** - * RMI 杩滅▼鏂规硶璋冪敤 - */ - public static final String LOOKUP_RMI = "rmi:"; - - /** - * LDAP 杩滅▼鏂规硶璋冪敤 - */ - public static final String LOOKUP_LDAP = "ldap:"; - - /** - * LDAPS 杩滅▼鏂规硶璋冪敤 - */ - public static final String LOOKUP_LDAPS = "ldaps:"; - - /** - * 瀹氭椂浠诲姟鐧藉悕鍗曢厤缃紙浠呭厑璁歌闂殑鍖呭悕锛屽鍏朵粬闇�瑕佸彲浠ヨ嚜琛屾坊鍔狅級 - */ - public static final String[] JOB_WHITELIST_STR = { "com.ruoyi" }; - - /** - * 瀹氭椂浠诲姟杩濊鐨勫瓧绗� - */ - 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" }; -} +package com.ruoyi.common.constant; + +/** + * 閫氱敤甯搁噺淇℃伅 + * + * @author ruoyi + */ +public interface Constants { + + /** + * UTF-8 瀛楃闆� + */ + String UTF8 = "UTF-8"; + + /** + * GBK 瀛楃闆� + */ + String GBK = "GBK"; + + /** + * www涓诲煙 + */ + String WWW = "www."; + + /** + * http璇锋眰 + */ + String HTTP = "http://"; + + /** + * https璇锋眰 + */ + String HTTPS = "https://"; + + /** + * 閫氱敤鎴愬姛鏍囪瘑 + */ + String SUCCESS = "0"; + + /** + * 閫氱敤澶辫触鏍囪瘑 + */ + String FAIL = "1"; + + /** + * 鐧诲綍鎴愬姛 + */ + String LOGIN_SUCCESS = "Success"; + + /** + * 娉ㄩ攢 + */ + String LOGOUT = "Logout"; + + /** + * 娉ㄥ唽 + */ + String REGISTER = "Register"; + + /** + * 鐧诲綍澶辫触 + */ + String LOGIN_FAIL = "Error"; + + /** + * 楠岃瘉鐮佹湁鏁堟湡锛堝垎閽燂級 + */ + Integer CAPTCHA_EXPIRATION = 2; + + /** + * 浠ょ墝 + */ + String TOKEN = "token"; + +} + -- Gitblit v1.9.3