From 42295ef2ac0a5e78674cf24b62d6834138f0ffdc Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期一, 29 十一月 2021 13:56:25 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into satoken

---
 ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java |   59 +++++++++++++++++------------------------------------------
 1 files changed, 17 insertions(+), 42 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 137969a..fc1137b 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
@@ -5,8 +5,7 @@
  *
  * @author ruoyi
  */
-public class Constants
-{
+public class Constants {
     /**
      * UTF-8 瀛楃闆�
      */
@@ -48,6 +47,11 @@
     public static final String LOGOUT = "Logout";
 
     /**
+     * 娉ㄥ唽
+     */
+    public static final String REGISTER = "Register";
+
+    /**
      * 鐧诲綍澶辫触
      */
     public static final String LOGIN_FAIL = "Error";
@@ -60,12 +64,22 @@
     /**
      * 鐧诲綍鐢ㄦ埛 redis key
      */
-    public static final String LOGIN_TOKEN_KEY = "login_tokens:";
+    public static final String LOGIN_TOKEN_KEY = "Authorization:login:token:";
+
+    /**
+     * 鍦ㄧ嚎鐢ㄦ埛 redis key
+     */
+    public static final String ONLINE_TOKEN_KEY = "online_tokens:";
 
     /**
      * 闃查噸鎻愪氦 redis key
      */
     public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";
+
+    /**
+     * 闄愭祦 redis key
+     */
+    public static final String RATE_LIMIT_KEY = "rate_limit:";
 
     /**
      * 楠岃瘉鐮佹湁鏁堟湡锛堝垎閽燂級
@@ -80,37 +94,7 @@
     /**
      * 浠ょ墝鍓嶇紑
      */
-    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 = "sub";
-
-    /**
-     * 鐢ㄦ埛澶村儚
-     */
-    public static final String JWT_AVATAR = "avatar";
-
-    /**
-     * 鍒涘缓鏃堕棿
-     */
-    public static final String JWT_CREATED = "created";
-
-    /**
-     * 鐢ㄦ埛鏉冮檺
-     */
-    public static final String JWT_AUTHORITIES = "authorities";
 
     /**
      * 鍙傛暟绠$悊 cache key
@@ -122,13 +106,4 @@
      */
     public static final String SYS_DICT_KEY = "sys_dict:";
 
-    /**
-     * 璧勬簮鏄犲皠璺緞 鍓嶇紑
-     */
-    public static final String RESOURCE_PREFIX = "/profile";
-
-	/**
-	 * 璧勬簮鏄犲皠璺緞 鍓嶇紑
-	 */
-	public static final String REDIS_LOCK_KEY = "redis_lock:";
 }

--
Gitblit v1.9.3