From f087b37cb32b84ae841fc409ea00ed2f729d9c8e Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期五, 04 六月 2021 16:46:28 +0800
Subject: [PATCH] update 优化 锁切面代码 key到常量类

---
 ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 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..137969a 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
@@ -2,7 +2,7 @@
 
 /**
  * 閫氱敤甯搁噺淇℃伅
- * 
+ *
  * @author ruoyi
  */
 public class Constants
@@ -63,6 +63,11 @@
     public static final String LOGIN_TOKEN_KEY = "login_tokens:";
 
     /**
+     * 闃查噸鎻愪氦 redis key
+     */
+    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";
+
+    /**
      * 楠岃瘉鐮佹湁鏁堟湡锛堝垎閽燂級
      */
     public static final Integer CAPTCHA_EXPIRATION = 2;
@@ -121,4 +126,9 @@
      * 璧勬簮鏄犲皠璺緞 鍓嶇紑
      */
     public static final String RESOURCE_PREFIX = "/profile";
+
+	/**
+	 * 璧勬簮鏄犲皠璺緞 鍓嶇紑
+	 */
+	public static final String REDIS_LOCK_KEY = "redis_lock:";
 }

--
Gitblit v1.9.3