From f8ab5663ef7220f8adc0fd8fcbd7d0cf84c6d77d Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期一, 02 八月 2021 12:15:14 +0800 Subject: [PATCH] update 日常字符串校验 统一重构到 StringUtils 便于维护扩展 --- ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java | 26 ++++++++++++++++++++++++-- 1 files changed, 24 insertions(+), 2 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 c9f8d0a..5f8964e 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,8 +1,10 @@ package com.ruoyi.common.constant; +import io.jsonwebtoken.Claims; + /** * 閫氱敤甯搁噺淇℃伅 - * + * * @author ruoyi */ public class Constants @@ -48,6 +50,11 @@ public static final String LOGOUT = "Logout"; /** + * 娉ㄥ唽 + */ + public static final String REGISTER = "Register"; + + /** * 鐧诲綍澶辫触 */ public static final String LOGIN_FAIL = "Error"; @@ -61,6 +68,11 @@ * 鐧诲綍鐢ㄦ埛 redis key */ public static final String LOGIN_TOKEN_KEY = "login_tokens:"; + + /** + * 闃查噸鎻愪氦 redis key + */ + public static final String REPEAT_SUBMIT_KEY = "repeat_submit:"; /** * 楠岃瘉鐮佹湁鏁堟湡锛堝垎閽燂級 @@ -90,7 +102,7 @@ /** * 鐢ㄦ埛鍚嶇О */ - public static final String JWT_USERNAME = "sub"; + public static final String JWT_USERNAME = Claims.SUBJECT; /** * 鐢ㄦ埛澶村儚 @@ -121,4 +133,14 @@ * 璧勬簮鏄犲皠璺緞 鍓嶇紑 */ public static final String RESOURCE_PREFIX = "/profile"; + + /** + * RMI 杩滅▼鏂规硶璋冪敤 + */ + public static final String LOOKUP_RMI = "rmi://"; + + /** + * 璧勬簮鏄犲皠璺緞 鍓嶇紑 + */ + public static final String REDIS_LOCK_KEY = "redis_lock:"; } -- Gitblit v1.9.3