Kaynağa Gözat

密码变量命名风格统一

Signed-off-by: taest <876239615@qq.com>
taest 3 yıl önce
ebeveyn
işleme
a8daa1f044

+ 2 - 2
ruoyi-auth/src/main/java/com/ruoyi/auth/service/SysPasswordService.java

@@ -21,9 +21,9 @@ public class SysPasswordService
21
     @Autowired
21
     @Autowired
22
     private RedisService redisService;
22
     private RedisService redisService;
23
 
23
 
24
-    private int maxRetryCount = CacheConstants.passwordMaxRetryCount;
24
+    private int maxRetryCount = CacheConstants.PASSWORD_MAX_RETRY_COUNT;
25
 
25
 
26
-    private Long lockTime = CacheConstants.passwordLockTime;
26
+    private Long lockTime = CacheConstants.PASSWORD_LOCK_TIME;
27
 
27
 
28
     @Autowired
28
     @Autowired
29
     private SysRecordLogService recordLogService;
29
     private SysRecordLogService recordLogService;

+ 2 - 2
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/CacheConstants.java

@@ -20,12 +20,12 @@ public class CacheConstants
20
     /**
20
     /**
21
      * 密码最大错误次数
21
      * 密码最大错误次数
22
      */
22
      */
23
-    public final static int passwordMaxRetryCount = 5;
23
+    public final static int PASSWORD_MAX_RETRY_COUNT = 5;
24
 
24
 
25
     /**
25
     /**
26
      * 密码锁定时间,默认10(分钟)
26
      * 密码锁定时间,默认10(分钟)
27
      */
27
      */
28
-    public final static long passwordLockTime = 10;
28
+    public final static long PASSWORD_LOCK_TIME = 10;
29
 
29
 
30
     /**
30
     /**
31
      * 权限缓存前缀
31
      * 权限缓存前缀