From a623f1eb91b1d89872e3582b5747e9d7096ea225 Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期五, 24 五月 2024 09:01:59 +0800 Subject: [PATCH] 代码提交 --- ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/Constants.java | 66 ++++++++++++++++++++++++++++++--- 1 files changed, 60 insertions(+), 6 deletions(-) diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/Constants.java b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/Constants.java index 56f106e..2902af8 100644 --- a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/Constants.java +++ b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/Constants.java @@ -2,11 +2,10 @@ /** * 通用常量信息 - * + * * @author ruoyi */ -public class Constants -{ +public class Constants { /** * UTF-8 字符集 */ @@ -56,6 +55,10 @@ * 失败标记 */ public static final Integer FAIL = 500; + /** + * 登录失效 + */ + public static final Integer TOKEN_ERROR = 600; /** * 登录成功状态 @@ -120,7 +123,7 @@ /** * 定时任务白名单配置(仅允许访问的包名,如其他需要可以自行添加) */ - public static final String[] JOB_WHITELIST_STR = { "com.ruoyi" }; + public static final String[] JOB_WHITELIST_STR = {"com.ruoyi"}; /** * 时间格式化 @@ -131,6 +134,57 @@ /** * 定时任务违规的字符 */ - public static final String[] JOB_ERROR_STR = { "java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml", - "org.springframework", "org.apache", "com.ruoyi.common.core.utils.file" }; + public static final String[] JOB_ERROR_STR = {"java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml", + "org.springframework", "org.apache", "com.ruoyi.common.core.utils.file"}; + + /** + * 60数字 + */ + public static final Integer SIXTY = 60; + + /** + * 1000数字 + */ + public static final Integer ONE_THOUSAND = 1000; + + /** + * 积分明细 符号 - + */ + public static final String BURDEN = "-"; + + /** + * 积分明细 符号 - + */ + public static final String INCREASE = "+"; + + /** + * 积分明细来源 商城消费 + */ + public static final String SHOPPING_CONSUME = "商城消费"; + + /** + * 手机号码正则 + */ + public static final String PHONE = ("^((13[0-9])|(14[0,1,4-9])|(15[0-3,5-9])|(16[2,5,6,7])|(17[0-8])|(18[0-9])|(19[0-3,5-9]))\\d{8}$"); + + /** + * 日 + */ + public static final String DAY = "day"; + + /** + * 周 + */ + public static final String WEEK = "week"; + + /** + * 月 + */ + public static final String MONTH = "month"; + + /** + * 错误码 + */ + public static final String ERR_CODE = "errcode"; + } -- Gitblit v1.7.1