44323
2024-05-29 fe3b034bfcb263336667bac9d4a002360533951b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
package com.ruoyi.common.core.constant;
 
/**
 * 通用常量信息
 *
 * @author ruoyi
 */
public class Constants {
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";
 
    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";
 
    /**
     * www主域
     */
    public static final String WWW = "www.";
 
    /**
     * RMI 远程方法调用
     */
    public static final String LOOKUP_RMI = "rmi:";
 
    /**
     * LDAP 远程方法调用
     */
    public static final String LOOKUP_LDAP = "ldap:";
 
    /**
     * LDAPS 远程方法调用
     */
    public static final String LOOKUP_LDAPS = "ldaps:";
 
    /**
     * http请求
     */
    public static final String HTTP = "http://";
 
    /**
     * https请求
     */
    public static final String HTTPS = "https://";
 
    /**
     * 成功标记
     */
    public static final Integer SUCCESS = 200;
    /**
     * 仅会员查看
     */
    public static final Integer VIP_ERROR = 501;
 
    /**
     * 失败标记
     */
    public static final Integer FAIL = 500;
    /**
     * 登录失效
     */
    public static final Integer TOKEN_ERROR = 600;
    /**
     * 账号冻结
     */
    public static final Integer FREEZE = 502;
    /**
     * 短信验证码无效
     */
    public static final Integer ERRORCODE = 503;
    /**
     * 积分商城兑换失败code
     */
    public static final Integer EXCHANGECODE = 506;
 
    /**
     * 登录成功状态
     */
    public static final String LOGIN_SUCCESS_STATUS = "0";
 
    /**
     * 登录失败状态
     */
    public static final String LOGIN_FAIL_STATUS = "1";
 
    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";
 
    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";
 
    /**
     * 注册
     */
    public static final String REGISTER = "Register";
 
    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";
 
    /**
     * 当前记录起始索引
     */
    public static final String PAGE_NUM = "pageNum";
 
    /**
     * 每页显示记录数
     */
    public static final String PAGE_SIZE = "pageSize";
 
    /**
     * 排序列
     */
    public static final String ORDER_BY_COLUMN = "orderByColumn";
 
    /**
     * 排序的方向 "desc" 或者 "asc".
     */
    public static final String IS_ASC = "isAsc";
 
    /**
     * 验证码有效期(分钟)
     */
    public static final long CAPTCHA_EXPIRATION = 2;
 
    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";
 
    /**
     * 定时任务白名单配置(仅允许访问的包名,如其他需要可以自行添加)
     */
    public static final String[] JOB_WHITELIST_STR = {"com.ruoyi"};
 
    /**
     * 时间格式化
     */
    public static final String DATE_FORMATTER_TIME = "yyyy-MM-dd HH:mm:ss";
    public static final String DATE_FORMATTER_DATE = "yyyy-MM-dd";
 
    /**
     * 定时任务违规的字符
     */
    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";
 
}