提交 | 用户 | 时间
|
a6de49
|
1 |
package com.iailab.framework.common.constant; |
H |
2 |
|
68a075
|
3 |
import java.math.BigDecimal; |
潘 |
4 |
|
a6de49
|
5 |
/** |
H |
6 |
* @Description: 通用常量 |
|
7 |
*/ |
|
8 |
public interface CommonConstant { |
|
9 |
|
68a075
|
10 |
BigDecimal BAD_VALUE = new BigDecimal("-2"); |
潘 |
11 |
|
|
12 |
BigDecimal ZERO_VALUE = new BigDecimal("0"); |
|
13 |
|
a6de49
|
14 |
/** |
H |
15 |
* 正常状态 |
|
16 |
*/ |
|
17 |
public static final Integer STATUS_NORMAL = 0; |
|
18 |
|
|
19 |
/** |
|
20 |
* 禁用状态 |
|
21 |
*/ |
|
22 |
public static final Integer STATUS_DISABLE = -1; |
|
23 |
|
|
24 |
/** |
|
25 |
* 删除标志 |
|
26 |
*/ |
|
27 |
public static final Integer DEL_FLAG_1 = 1; |
|
28 |
|
|
29 |
/** |
|
30 |
* 未删除 |
|
31 |
*/ |
|
32 |
public static final Integer DEL_FLAG_0 = 0; |
|
33 |
|
|
34 |
/** |
|
35 |
* 未提交 |
|
36 |
*/ |
|
37 |
public static final Integer SUBMINT_STATUS_0 = 0; |
|
38 |
|
|
39 |
/** |
|
40 |
* 系统日志类型: 登录 |
|
41 |
*/ |
|
42 |
public static final int LOG_TYPE_1 = 1; |
|
43 |
|
|
44 |
/** |
|
45 |
* 系统日志类型: 操作 |
|
46 |
*/ |
|
47 |
public static final int LOG_TYPE_2 = 2; |
|
48 |
|
|
49 |
/** |
|
50 |
* 操作日志类型: 查询 |
|
51 |
*/ |
|
52 |
public static final int OPERATE_TYPE_1 = 1; |
|
53 |
|
|
54 |
/** |
|
55 |
* 操作日志类型: 添加 |
|
56 |
*/ |
|
57 |
public static final int OPERATE_TYPE_2 = 2; |
|
58 |
|
|
59 |
/** |
|
60 |
* 操作日志类型: 更新 |
|
61 |
*/ |
|
62 |
public static final int OPERATE_TYPE_3 = 3; |
|
63 |
|
|
64 |
/** |
|
65 |
* 操作日志类型: 删除 |
|
66 |
*/ |
|
67 |
public static final int OPERATE_TYPE_4 = 4; |
|
68 |
|
|
69 |
/** |
|
70 |
* 操作日志类型: 倒入 |
|
71 |
*/ |
|
72 |
public static final int OPERATE_TYPE_5 = 5; |
|
73 |
|
|
74 |
/** |
|
75 |
* 操作日志类型: 导出 |
|
76 |
*/ |
|
77 |
public static final int OPERATE_TYPE_6 = 6; |
|
78 |
|
|
79 |
/** |
|
80 |
* 提交 |
|
81 |
*/ |
|
82 |
public static final int SUBMIT_FLAG_1 = 1; |
|
83 |
|
|
84 |
/** |
|
85 |
* 提交 |
|
86 |
*/ |
|
87 |
public static final int SUBMIT_FLAG_0 = 0; |
|
88 |
|
|
89 |
/** |
|
90 |
* 启用 |
|
91 |
*/ |
|
92 |
public static final int IS_ENABLE = 1; |
|
93 |
|
|
94 |
/** |
|
95 |
* 常量点类型 |
|
96 |
*/ |
|
97 |
public static final String POINT_TYPE_NAME_CONSTANT = "CONSTANT"; |
|
98 |
|
|
99 |
|
|
100 |
/** {@code 500 Server Error} (HTTP/1.0 - RFC 1945) */ |
|
101 |
public static final Integer SC_INTERNAL_SERVER_ERROR_500 = 500; |
|
102 |
/** {@code 200 OK} (HTTP/1.0 - RFC 1945) */ |
|
103 |
public static final Integer SC_OK_200 = 200; |
|
104 |
|
|
105 |
/**访问权限认证未通过 510*/ |
|
106 |
public static final Integer SC_JEECG_NO_AUTHZ=510; |
|
107 |
|
|
108 |
/** 登录用户Shiro权限缓存KEY前缀 */ |
|
109 |
public static String PREFIX_USER_SHIRO_CACHE = "shiro:cache:org.jeecg.config.shiro.ShiroRealm.authorizationCache:"; |
|
110 |
/** 登录用户Token令牌缓存KEY前缀 */ |
|
111 |
public static final String PREFIX_USER_TOKEN = "prefix_user_token_"; |
|
112 |
// /** Token缓存时间:3600秒即一小时 */ |
|
113 |
// public static final int TOKEN_EXPIRE_TIME = 3600; |
|
114 |
|
|
115 |
/** 登录二维码 */ |
|
116 |
public static final String LOGIN_QRCODE_PRE = "QRCODELOGIN:"; |
|
117 |
public static final String LOGIN_QRCODE = "LQ:"; |
|
118 |
/** 登录二维码token */ |
|
119 |
public static final String LOGIN_QRCODE_TOKEN = "LQT:"; |
|
120 |
|
|
121 |
|
|
122 |
/** |
|
123 |
* 0:一级菜单 |
|
124 |
*/ |
|
125 |
public static final Integer MENU_TYPE_0 = 0; |
|
126 |
/** |
|
127 |
* 1:子菜单 |
|
128 |
*/ |
|
129 |
public static final Integer MENU_TYPE_1 = 1; |
|
130 |
/** |
|
131 |
* 2:按钮权限 |
|
132 |
*/ |
|
133 |
public static final Integer MENU_TYPE_2 = 2; |
|
134 |
|
|
135 |
/**通告对象类型(USER:指定用户,ALL:全体用户)*/ |
|
136 |
public static final String MSG_TYPE_UESR = "USER"; |
|
137 |
public static final String MSG_TYPE_ALL = "ALL"; |
|
138 |
|
|
139 |
/**发布状态(0未发布,1已发布,2已撤销)*/ |
|
140 |
public static final String NO_SEND = "0"; |
|
141 |
public static final String HAS_SEND = "1"; |
|
142 |
public static final String HAS_CANCLE = "2"; |
|
143 |
|
|
144 |
/**阅读状态(0未读,1已读)*/ |
|
145 |
public static final String HAS_READ_FLAG = "1"; |
|
146 |
public static final String NO_READ_FLAG = "0"; |
|
147 |
|
|
148 |
/**优先级(L低,M中,H高)*/ |
|
149 |
public static final String PRIORITY_L = "L"; |
|
150 |
public static final String PRIORITY_M = "M"; |
|
151 |
public static final String PRIORITY_H = "H"; |
|
152 |
|
|
153 |
/** |
|
154 |
* 短信模板方式 0 .登录模板、1.注册模板、2.忘记密码模板 |
|
155 |
*/ |
|
156 |
public static final String SMS_TPL_TYPE_0 = "0"; |
|
157 |
public static final String SMS_TPL_TYPE_1 = "1"; |
|
158 |
public static final String SMS_TPL_TYPE_2 = "2"; |
|
159 |
|
|
160 |
/** |
|
161 |
* 状态(0无效1有效) |
|
162 |
*/ |
|
163 |
public static final String STATUS_0 = "0"; |
|
164 |
public static final String STATUS_1 = "1"; |
|
165 |
|
|
166 |
/** |
|
167 |
* 同步工作流引擎1同步0不同步 |
|
168 |
*/ |
|
169 |
public static final Integer ACT_SYNC_1 = 1; |
|
170 |
public static final Integer ACT_SYNC_0 = 0; |
|
171 |
|
|
172 |
/** |
|
173 |
* 消息类型1:通知公告2:系统消息 |
|
174 |
*/ |
|
175 |
public static final String MSG_CATEGORY_1 = "1"; |
|
176 |
public static final String MSG_CATEGORY_2 = "2"; |
|
177 |
|
|
178 |
/** |
|
179 |
* 是否配置菜单的数据权限 1是0否 |
|
180 |
*/ |
|
181 |
public static final Integer RULE_FLAG_0 = 0; |
|
182 |
public static final Integer RULE_FLAG_1 = 1; |
|
183 |
|
|
184 |
/** |
|
185 |
* 是否用户已被冻结 1正常(解冻) 2冻结 |
|
186 |
*/ |
|
187 |
public static final Integer USER_UNFREEZE = 1; |
|
188 |
public static final Integer USER_FREEZE = 2; |
|
189 |
|
|
190 |
/**字典翻译文本后缀*/ |
|
191 |
public static final String DICT_TEXT_SUFFIX = "_dictText"; |
|
192 |
|
|
193 |
/** |
|
194 |
* 表单设计器主表类型 |
|
195 |
*/ |
|
196 |
public static final Integer DESIGN_FORM_TYPE_MAIN = 1; |
|
197 |
|
|
198 |
/** |
|
199 |
* 表单设计器子表表类型 |
|
200 |
*/ |
|
201 |
public static final Integer DESIGN_FORM_TYPE_SUB = 2; |
|
202 |
|
|
203 |
/** |
|
204 |
* 表单设计器URL授权通过 |
|
205 |
*/ |
|
206 |
public static final Integer DESIGN_FORM_URL_STATUS_PASSED = 1; |
|
207 |
|
|
208 |
/** |
|
209 |
* 表单设计器URL授权未通过 |
|
210 |
*/ |
|
211 |
public static final Integer DESIGN_FORM_URL_STATUS_NOT_PASSED = 2; |
|
212 |
|
|
213 |
/** |
|
214 |
* 表单设计器新增 Flag |
|
215 |
*/ |
|
216 |
public static final String DESIGN_FORM_URL_TYPE_ADD = "add"; |
|
217 |
/** |
|
218 |
* 表单设计器修改 Flag |
|
219 |
*/ |
|
220 |
public static final String DESIGN_FORM_URL_TYPE_EDIT = "edit"; |
|
221 |
/** |
|
222 |
* 表单设计器详情 Flag |
|
223 |
*/ |
|
224 |
public static final String DESIGN_FORM_URL_TYPE_DETAIL = "detail"; |
|
225 |
/** |
|
226 |
* 表单设计器复用数据 Flag |
|
227 |
*/ |
|
228 |
public static final String DESIGN_FORM_URL_TYPE_REUSE = "reuse"; |
|
229 |
/** |
|
230 |
* 表单设计器编辑 Flag (已弃用) |
|
231 |
*/ |
|
232 |
public static final String DESIGN_FORM_URL_TYPE_VIEW = "view"; |
|
233 |
|
|
234 |
/** |
|
235 |
* online参数值设置(是:Y, 否:N) |
|
236 |
*/ |
|
237 |
public static final String ONLINE_PARAM_VAL_IS_TURE = "Y"; |
|
238 |
public static final String ONLINE_PARAM_VAL_IS_FALSE = "N"; |
|
239 |
|
|
240 |
/** |
|
241 |
* 文件上传类型(本地:local,Minio:minio,阿里云:alioss) |
|
242 |
*/ |
|
243 |
public static final String UPLOAD_TYPE_LOCAL = "local"; |
|
244 |
public static final String UPLOAD_TYPE_MINIO = "minio"; |
|
245 |
public static final String UPLOAD_TYPE_OSS = "alioss"; |
|
246 |
|
|
247 |
/** |
|
248 |
* 文档上传自定义桶名称 |
|
249 |
*/ |
|
250 |
public static final String UPLOAD_CUSTOM_BUCKET = "eoafile"; |
|
251 |
/** |
|
252 |
* 文档上传自定义路径 |
|
253 |
*/ |
|
254 |
public static final String UPLOAD_CUSTOM_PATH = "eoafile"; |
|
255 |
/** |
|
256 |
* 文件外链接有效天数 |
|
257 |
*/ |
|
258 |
public static final Integer UPLOAD_EFFECTIVE_DAYS = 1; |
|
259 |
|
|
260 |
/** |
|
261 |
* 员工身份 (1:普通员工 2:上级) |
|
262 |
*/ |
|
263 |
public static final Integer USER_IDENTITY_1 = 1; |
|
264 |
public static final Integer USER_IDENTITY_2 = 2; |
|
265 |
|
|
266 |
/** sys_user 表 username 唯一键索引 */ |
|
267 |
public static final String SQL_INDEX_UNIQ_SYS_USER_USERNAME = "uniq_sys_user_username"; |
|
268 |
/** sys_user 表 work_no 唯一键索引 */ |
|
269 |
public static final String SQL_INDEX_UNIQ_SYS_USER_WORK_NO = "uniq_sys_user_work_no"; |
|
270 |
/** sys_user 表 phone 唯一键索引 */ |
|
271 |
public static final String SQL_INDEX_UNIQ_SYS_USER_PHONE = "uniq_sys_user_phone"; |
|
272 |
/** 达梦数据库升提示。违反表[SYS_USER]唯一性约束 */ |
|
273 |
public static final String SQL_INDEX_UNIQ_SYS_USER = "唯一性约束"; |
|
274 |
|
|
275 |
/** sys_user 表 email 唯一键索引 */ |
|
276 |
public static final String SQL_INDEX_UNIQ_SYS_USER_EMAIL = "uniq_sys_user_email"; |
|
277 |
/** sys_quartz_job 表 job_class_name 唯一键索引 */ |
|
278 |
public static final String SQL_INDEX_UNIQ_JOB_CLASS_NAME = "uniq_job_class_name"; |
|
279 |
/** sys_position 表 code 唯一键索引 */ |
|
280 |
public static final String SQL_INDEX_UNIQ_CODE = "uniq_code"; |
|
281 |
/** sys_role 表 code 唯一键索引 */ |
|
282 |
public static final String SQL_INDEX_UNIQ_SYS_ROLE_CODE = "uniq_sys_role_role_code"; |
|
283 |
/** sys_depart 表 code 唯一键索引 */ |
|
284 |
public static final String SQL_INDEX_UNIQ_DEPART_ORG_CODE = "uniq_depart_org_code"; |
|
285 |
/** sys_category 表 code 唯一键索引 */ |
|
286 |
public static final String SQL_INDEX_UNIQ_CATEGORY_CODE = "idx_sc_code"; |
|
287 |
/** |
|
288 |
* 在线聊天 是否为默认分组 |
|
289 |
*/ |
|
290 |
public static final String IM_DEFAULT_GROUP = "1"; |
|
291 |
/** |
|
292 |
* 在线聊天 图片文件保存路径 |
|
293 |
*/ |
|
294 |
public static final String IM_UPLOAD_CUSTOM_PATH = "imfile"; |
|
295 |
/** |
|
296 |
* 在线聊天 用户状态 |
|
297 |
*/ |
|
298 |
public static final String IM_STATUS_ONLINE = "online"; |
|
299 |
|
|
300 |
/** |
|
301 |
* 在线聊天 SOCKET消息类型 |
|
302 |
*/ |
|
303 |
public static final String IM_SOCKET_TYPE = "chatMessage"; |
|
304 |
|
|
305 |
/** |
|
306 |
* 在线聊天 是否开启默认添加好友 1是 0否 |
|
307 |
*/ |
|
308 |
public static final String IM_DEFAULT_ADD_FRIEND = "1"; |
|
309 |
|
|
310 |
/** |
|
311 |
* 在线聊天 用户好友缓存前缀 |
|
312 |
*/ |
|
313 |
public static final String IM_PREFIX_USER_FRIEND_CACHE = "sys:cache:im:im_prefix_user_friend_"; |
|
314 |
|
|
315 |
/** |
|
316 |
* 考勤补卡业务状态 (1:同意 2:不同意) |
|
317 |
*/ |
|
318 |
public static final String SIGN_PATCH_BIZ_STATUS_1 = "1"; |
|
319 |
public static final String SIGN_PATCH_BIZ_STATUS_2 = "2"; |
|
320 |
|
|
321 |
/** |
|
322 |
* 公文文档上传自定义路径 |
|
323 |
*/ |
|
324 |
public static final String UPLOAD_CUSTOM_PATH_OFFICIAL = "officialdoc"; |
|
325 |
/** |
|
326 |
* 公文文档下载自定义路径 |
|
327 |
*/ |
|
328 |
public static final String DOWNLOAD_CUSTOM_PATH_OFFICIAL = "officaldown"; |
|
329 |
|
|
330 |
/** |
|
331 |
* WPS存储值类别(1 code文号 2 text(WPS模板还是公文发文模板)) |
|
332 |
*/ |
|
333 |
public static final String WPS_TYPE_1="1"; |
|
334 |
public static final String WPS_TYPE_2="2"; |
|
335 |
|
|
336 |
|
|
337 |
public final static String X_ACCESS_TOKEN = "X-Access-Token"; |
|
338 |
public final static String X_SIGN = "X-Sign"; |
|
339 |
public final static String X_TIMESTAMP = "X-TIMESTAMP"; |
|
340 |
public final static String TOKEN_IS_INVALID_MSG = "Token失效,请重新登录!"; |
|
341 |
|
|
342 |
/** |
|
343 |
* 多租户 请求头 |
|
344 |
*/ |
|
345 |
public final static String TENANT_ID = "tenant-id"; |
|
346 |
|
|
347 |
/** |
|
348 |
* 微服务读取配置文件属性 服务地址 |
|
349 |
*/ |
|
350 |
public final static String CLOUD_SERVER_KEY = "spring.cloud.nacos.discovery.server-addr"; |
|
351 |
|
|
352 |
/** |
|
353 |
* 第三方登录 验证密码/创建用户 都需要设置一个操作码 防止被恶意调用 |
|
354 |
*/ |
|
355 |
public final static String THIRD_LOGIN_CODE = "third_login_code"; |
|
356 |
|
|
357 |
/** |
|
358 |
* 第三方APP同步方向:本地 --> 第三方APP |
|
359 |
*/ |
|
360 |
String THIRD_SYNC_TO_APP = "SYNC_TO_APP"; |
|
361 |
/** |
|
362 |
* 第三方APP同步方向:第三方APP --> 本地 |
|
363 |
*/ |
|
364 |
String THIRD_SYNC_TO_LOCAL = "SYNC_TO_LOCAL"; |
|
365 |
|
|
366 |
/** 系统通告消息状态:0=未发布 */ |
|
367 |
String ANNOUNCEMENT_SEND_STATUS_0 = "0"; |
|
368 |
/** 系统通告消息状态:1=已发布 */ |
|
369 |
String ANNOUNCEMENT_SEND_STATUS_1 = "1"; |
|
370 |
/** 系统通告消息状态:2=已撤销 */ |
|
371 |
String ANNOUNCEMENT_SEND_STATUS_2 = "2"; |
|
372 |
|
|
373 |
/**ONLINE 报表权限用 从request中获取地址栏后的参数*/ |
|
374 |
String ONL_REP_URL_PARAM_STR="onlRepUrlParamStr"; |
|
375 |
|
|
376 |
/**POST请求*/ |
|
377 |
String HTTP_POST = "POST"; |
|
378 |
|
|
379 |
/**PUT请求*/ |
|
380 |
String HTTP_PUT = "PUT"; |
|
381 |
|
|
382 |
/**PATCH请求*/ |
|
383 |
String HTTP_PATCH = "PATCH"; |
|
384 |
|
|
385 |
/**未知的*/ |
|
386 |
String UNKNOWN = "unknown"; |
|
387 |
|
|
388 |
/**字符串http*/ |
|
389 |
String STR_HTTP = "http"; |
|
390 |
|
|
391 |
/**String 类型的空值*/ |
|
392 |
String STRING_NULL = "null"; |
|
393 |
|
|
394 |
/**java.util.Date 包*/ |
|
395 |
String JAVA_UTIL_DATE = "java.util.Date"; |
|
396 |
|
|
397 |
/**.do*/ |
|
398 |
String SPOT_DO = ".do"; |
|
399 |
|
|
400 |
|
|
401 |
/**前端vue版本标识*/ |
|
402 |
String VERSION="X-Version"; |
|
403 |
|
|
404 |
/**前端vue版本*/ |
|
405 |
String VERSION_VUE3="vue3"; |
|
406 |
} |