18582019636
2024-06-26 f23efcba1bbbb84b603403711df00af138bdf3da
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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
package com.ruoyi.common.core.constant;
 
/**
 * 通用常量信息
 *
 * @author ruoyi
 */
public class Constants {
    /**
     * 微信获取授权openId地址
     */
    public static final String WX_OPENID_ADDRESS = "https://api.weixin.qq.com/sns/jscode2sess";
 
    /**
     * 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 FAIL = 500;
 
    /**
     * 登录成功状态
     */
    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";
 
    /**
     * 自动识别json对象白名单配置(仅允许解析的包名,范围越小越安全)
     */
    public static final String[] JSON_WHITELIST_STR = {"org.springframework", "com.ruoyi"};
 
    /**
     * 定时任务白名单配置(仅允许访问的包名,如其他需要可以自行添加)
     */
    public static final String[] JOB_WHITELIST_STR = {"com.ruoyi.job.task"};
 
    /**
     * 定时任务违规的字符
     */
    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"};
 
    /**
     * 提现记录excel模板名称
     */
    public static final String EXCEL_WITHDRAWAL_FILE_NAME = "提现记录";
 
    /**
     * 订单记录excel模板名称
     */
    public static final String EXCEL_ORDER_FILE_NAME = "订单记录";
 
    /**
     * 文件上传常量后缀
     */
    public static final String APK = "apk";
 
    /**
     * 用户编号生成前缀
     */
    public static final String USER_NO_PRE = "用户%s";
 
    /**
     * 待审核 数字状态
     */
    public static final Integer AUDIT_NUMBER = 0;
 
    /**
     * 待审核 中文状态
     */
    public static final String AUDIT_STR = "待审核";
 
    /**
     * 已通过 数字状态
     */
    public static final Integer PASS_THROUGH_NUMBER = 1;
 
    /**
     * 已通过 中文状态
     */
    public static final String PASS_THROUGH_STR = "已通过";
 
    /**
     * 已驳回 数字状态
     */
    public static final Integer REJECT_NUMBER = 2;
 
    /**
     * 已驳回 中文状态
     */
    public static final String REJECT_STR = "已驳回";
 
    /**
     * 数字60
     */
    public static final Integer SIXTY = 60;
 
    /**
     * 数字0
     */
    public static final Integer ZERO = 0;
 
    /**
     * 数字1
     */
    public static final Integer ONE = 1;
 
    /**
     * 数字2
     */
    public static final Integer TWO = 2;
 
    /**
     * 数字3
     */
    public static final Integer THREE = 3;
 
    /**
     * 数字5
     */
    public static final Integer FIVE = 5;
 
    /**
     * 数字6
     */
    public static final Integer SIX = 6;
 
    /**
     * 数字18
     */
    public static final Integer EIGHTEEN = 18;
 
    /**
     * 数字18
     */
    public static final Integer EIGHT = 18;
 
    /**
     * 数字100
     */
    public static final Integer ONE_HUNDRED = 100;
 
    /**
     * 数字 3000
     */
    public static final Integer THREE_THOUSAND = 3000;
 
    /**
     * 师傅端默认用户ID前缀
     */
    public static final String DEFAULT_USER_NUMBER_PRE = "用户";
 
    /**
     * 师傅端默认密码
     */
    public static final String DEFAULT_PASSWORD = "123456";
 
    /**
     * 手机号码正则
     */
    public static final String PHONE = "^1[34578]\\d{9}$";
 
}