提交 | 用户 | 时间
|
a6de49
|
1 |
/** |
H |
2 |
* Copyright (c) 2018 人人开源 All rights reserved. |
|
3 |
* |
|
4 |
* https://www.renren.io |
|
5 |
* |
|
6 |
* 版权所有,侵权必究! |
|
7 |
*/ |
|
8 |
|
|
9 |
package com.iailab.framework.common.constant; |
|
10 |
|
|
11 |
/** |
|
12 |
* 常量 |
|
13 |
* |
|
14 |
* @author Mark sunlightcs@gmail.com |
|
15 |
*/ |
|
16 |
public interface Constant { |
|
17 |
/** |
|
18 |
* 成功 |
|
19 |
*/ |
|
20 |
int SUCCESS = 1; |
|
21 |
/** |
|
22 |
* 失败 |
|
23 |
*/ |
|
24 |
int FAIL = 0; |
|
25 |
/** |
|
26 |
* 菜单根节点标识 |
|
27 |
*/ |
|
28 |
Long MENU_ROOT = 0L; |
|
29 |
/** |
|
30 |
* 部门根节点标识 |
|
31 |
*/ |
|
32 |
Long DEPT_ROOT = 0L; |
|
33 |
/** |
|
34 |
* 升序 |
|
35 |
*/ |
|
36 |
String ASC = "asc"; |
|
37 |
/** |
|
38 |
* 降序 |
|
39 |
*/ |
|
40 |
String DESC = "desc"; |
|
41 |
/** |
|
42 |
* 创建时间字段名 |
|
43 |
*/ |
|
44 |
String CREATE_DATE = "create_date"; |
|
45 |
|
|
46 |
String CREATE_TIME = "create_time"; |
|
47 |
|
|
48 |
/** |
|
49 |
* 数据权限过滤 |
|
50 |
*/ |
|
51 |
String SQL_FILTER = "sqlFilter"; |
|
52 |
/** |
|
53 |
* 当前页码 |
|
54 |
*/ |
|
55 |
String PAGE = "page"; |
|
56 |
/** |
|
57 |
* 每页显示记录数 |
|
58 |
*/ |
|
59 |
String LIMIT = "limit"; |
|
60 |
/** |
|
61 |
* 排序字段 |
|
62 |
*/ |
|
63 |
String ORDER_FIELD = "orderField"; |
|
64 |
/** |
|
65 |
* 排序方式 |
|
66 |
*/ |
|
67 |
String ORDER = "order"; |
|
68 |
/** |
|
69 |
* token header |
|
70 |
*/ |
139c6a
|
71 |
String TOKEN_HEADER = "authorization"; |
a6de49
|
72 |
|
H |
73 |
/** |
d45017
|
74 |
* tenantCode |
潘 |
75 |
*/ |
|
76 |
String TENANT_CODE = "tenantCode"; |
|
77 |
|
|
78 |
/** |
|
79 |
* tenantId |
|
80 |
*/ |
|
81 |
String TENANT_ID = "tenantId"; |
|
82 |
|
|
83 |
/** |
dd3a91
|
84 |
* tenantId |
潘 |
85 |
*/ |
|
86 |
String HEAD_TENANT_ID = "tenant-id"; |
|
87 |
|
|
88 |
/** |
a6de49
|
89 |
* 云存储配置KEY |
H |
90 |
*/ |
|
91 |
String CLOUD_STORAGE_CONFIG_KEY = "CLOUD_STORAGE_CONFIG_KEY"; |
|
92 |
|
|
93 |
Integer DEL_FLAG_0 = 0; |
|
94 |
|
|
95 |
enum EnableStatus { |
|
96 |
DISABLED(0), |
|
97 |
NORMAL(1); |
|
98 |
|
|
99 |
private int value; |
|
100 |
|
|
101 |
private EnableStatus(int value) { |
|
102 |
this.value = value; |
|
103 |
} |
|
104 |
|
|
105 |
public int getValue() { |
|
106 |
return this.value; |
|
107 |
} |
|
108 |
} |
|
109 |
|
|
110 |
/** |
|
111 |
* 定时任务状态 |
|
112 |
*/ |
|
113 |
enum ScheduleStatus { |
|
114 |
/** |
|
115 |
* 暂停 |
|
116 |
*/ |
|
117 |
PAUSE(0), |
|
118 |
/** |
|
119 |
* 正常 |
|
120 |
*/ |
|
121 |
NORMAL(1); |
|
122 |
|
|
123 |
private int value; |
|
124 |
|
|
125 |
ScheduleStatus(int value) { |
|
126 |
this.value = value; |
|
127 |
} |
|
128 |
|
|
129 |
public int getValue() { |
|
130 |
return value; |
|
131 |
} |
|
132 |
} |
|
133 |
|
|
134 |
/** |
|
135 |
* 云服务商 |
|
136 |
*/ |
|
137 |
enum CloudService { |
|
138 |
/** |
|
139 |
* 七牛云 |
|
140 |
*/ |
|
141 |
QINIU(1), |
|
142 |
/** |
|
143 |
* 阿里云 |
|
144 |
*/ |
|
145 |
ALIYUN(2), |
|
146 |
/** |
|
147 |
* 腾讯云 |
|
148 |
*/ |
|
149 |
QCLOUD(3); |
|
150 |
|
|
151 |
private int value; |
|
152 |
|
|
153 |
CloudService(int value) { |
|
154 |
this.value = value; |
|
155 |
} |
|
156 |
|
|
157 |
public int getValue() { |
|
158 |
return value; |
|
159 |
} |
|
160 |
} |
|
161 |
} |