update 同步ruoyi

This commit is contained in:
疯狂的狮子li
2022-08-08 10:35:08 +08:00
11 changed files with 228 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
package com.ruoyi.common.core.constant;
/**
* 缓存的key 常量
* 缓存常量信息
*
* @author Lion Li
*/
@@ -22,6 +22,16 @@ public interface CacheConstants {
*/
String LOGINID_JOIN_CODE = ":";
/**
* 密码最大错误次数
*/
int passwordMaxRetryCount = 5;
/**
* 密码锁定时间默认10分钟
*/
long passwordLockTime = 10;
/**
* 登陆错误 redis key
*/
@@ -37,4 +47,23 @@ public interface CacheConstants {
*/
Integer LOGIN_ERROR_LIMIT_TIME = 10;
/**
* 验证码 redis key
*/
String CAPTCHA_CODE_KEY = "captcha_codes:";
/**
* 参数管理 cache key
*/
String SYS_CONFIG_KEY = "sys_config:";
/**
* 字典管理 cache key
*/
String SYS_DICT_KEY = "sys_dict:";
/**
* 登录账户密码错误次数 redis key
*/
String PWD_ERR_CNT_KEY = "pwd_err_cnt:";
}

View File

@@ -66,11 +66,6 @@ public interface Constants {
*/
String LOGIN_FAIL = "Error";
/**
* 验证码 redis key
*/
String CAPTCHA_CODE_KEY = "captcha_codes:";
/**
* 验证码有效期(分钟)
*/
@@ -81,14 +76,4 @@ public interface Constants {
*/
String REPEAT_SUBMIT_KEY = "repeat_submit:";
/**
* 参数管理 cache key
*/
String SYS_CONFIG_KEY = "sys_config:";
/**
* 字典管理 cache key
*/
String SYS_DICT_KEY = "sys_dict:";
}