!233 密码变量命名风格统一

Merge pull request !233 from taest/N/A
This commit is contained in:
若依 2022-08-22 06:32:49 +00:00 committed by Gitee
commit 2af8e817bd
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 4 additions and 4 deletions

View File

@ -21,9 +21,9 @@ public class SysPasswordService
@Autowired @Autowired
private RedisService redisService; private RedisService redisService;
private int maxRetryCount = CacheConstants.passwordMaxRetryCount; private int maxRetryCount = CacheConstants.PASSWORD_MAX_RETRY_COUNT;
private Long lockTime = CacheConstants.passwordLockTime; private Long lockTime = CacheConstants.PASSWORD_LOCK_TIME;
@Autowired @Autowired
private SysRecordLogService recordLogService; private SysRecordLogService recordLogService;

View File

@ -20,12 +20,12 @@ public class CacheConstants
/** /**
* 密码最大错误次数 * 密码最大错误次数
*/ */
public final static int passwordMaxRetryCount = 5; public final static int PASSWORD_MAX_RETRY_COUNT = 5;
/** /**
* 密码锁定时间默认10分钟 * 密码锁定时间默认10分钟
*/ */
public final static long passwordLockTime = 10; public final static long PASSWORD_LOCK_TIME = 10;
/** /**
* 权限缓存前缀 * 权限缓存前缀