mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-11-05 08:57:12 +08:00
style: 优化常量命名风格,XxxConsts => XxxConstants
This commit is contained in:
@@ -26,7 +26,7 @@ import lombok.NoArgsConstructor;
|
||||
* @since 2022/12/22 19:30
|
||||
*/
|
||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public class CacheConsts {
|
||||
public class CacheConstants {
|
||||
|
||||
/**
|
||||
* 登录用户键
|
||||
@@ -26,7 +26,7 @@ import lombok.NoArgsConstructor;
|
||||
* @since 2023/1/2 21:19
|
||||
*/
|
||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public class FileConsts {
|
||||
public class FileConstants {
|
||||
|
||||
/**
|
||||
* 头像支持的图片类型
|
||||
@@ -28,7 +28,7 @@ import cn.hutool.core.lang.RegexPool;
|
||||
* @since 2023/1/10 20:06
|
||||
*/
|
||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public class RegexConsts implements RegexPool {
|
||||
public class RegexConstants implements RegexPool {
|
||||
|
||||
/**
|
||||
* 用户名正则(长度为 4 到 64 位,可以包含字母、数字,下划线,以字母开头)
|
||||
@@ -19,7 +19,7 @@ package top.charles7c.cnadmin.common.constant;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import top.charles7c.continew.starter.core.constant.StringConsts;
|
||||
import top.charles7c.continew.starter.core.constant.StringConstants;
|
||||
|
||||
/**
|
||||
* 系统相关常量
|
||||
@@ -28,7 +28,7 @@ import top.charles7c.continew.starter.core.constant.StringConsts;
|
||||
* @since 2023/2/9 22:11
|
||||
*/
|
||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public class SysConsts {
|
||||
public class SysConstants {
|
||||
|
||||
/**
|
||||
* 管理员角色编码
|
||||
@@ -48,7 +48,7 @@ public class SysConsts {
|
||||
/**
|
||||
* 全部权限标识
|
||||
*/
|
||||
public static final String ALL_PERMISSION = StringConsts.ASTERISK;
|
||||
public static final String ALL_PERMISSION = StringConstants.ASTERISK;
|
||||
|
||||
/**
|
||||
* 默认密码
|
||||
@@ -26,7 +26,7 @@ import lombok.NoArgsConstructor;
|
||||
* @since 2023/9/17 14:12
|
||||
*/
|
||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public class UIConsts {
|
||||
public class UIConstants {
|
||||
|
||||
/**
|
||||
* 主色(极致蓝)
|
||||
Reference in New Issue
Block a user