提交 | 用户 | 时间
|
722af2
|
1 |
package com.dl.common.constant; |
X |
2 |
|
|
3 |
/** |
|
4 |
* 用户常量信息 |
|
5 |
* |
|
6 |
* @author dl |
|
7 |
*/ |
|
8 |
public interface UserConstants { |
|
9 |
|
|
10 |
/** |
|
11 |
* 平台内系统用户的唯一标志 |
|
12 |
*/ |
|
13 |
String SYS_USER = "SYS_USER"; |
|
14 |
|
|
15 |
/** |
|
16 |
* 正常状态 |
|
17 |
*/ |
|
18 |
String NORMAL = "0"; |
|
19 |
|
|
20 |
/** |
|
21 |
* 异常状态 |
|
22 |
*/ |
|
23 |
String EXCEPTION = "1"; |
|
24 |
|
|
25 |
/** |
|
26 |
* 用户正常状态 |
|
27 |
*/ |
|
28 |
String USER_NORMAL = "0"; |
|
29 |
|
|
30 |
/** |
|
31 |
* 用户封禁状态 |
|
32 |
*/ |
|
33 |
String USER_DISABLE = "1"; |
|
34 |
|
|
35 |
/** |
|
36 |
* 角色正常状态 |
|
37 |
*/ |
|
38 |
String ROLE_NORMAL = "0"; |
|
39 |
|
|
40 |
/** |
|
41 |
* 角色封禁状态 |
|
42 |
*/ |
|
43 |
String ROLE_DISABLE = "1"; |
|
44 |
|
|
45 |
/** |
|
46 |
* 部门正常状态 |
|
47 |
*/ |
|
48 |
String DEPT_NORMAL = "0"; |
|
49 |
|
|
50 |
/** |
|
51 |
* 部门停用状态 |
|
52 |
*/ |
|
53 |
String DEPT_DISABLE = "1"; |
|
54 |
|
|
55 |
/** |
|
56 |
* 字典正常状态 |
|
57 |
*/ |
|
58 |
String DICT_NORMAL = "0"; |
|
59 |
|
|
60 |
/** |
|
61 |
* 是否为系统默认(是) |
|
62 |
*/ |
|
63 |
String YES = "Y"; |
|
64 |
|
|
65 |
/** |
|
66 |
* 是否菜单外链(是) |
|
67 |
*/ |
|
68 |
String YES_FRAME = "0"; |
|
69 |
|
|
70 |
/** |
|
71 |
* 是否菜单外链(否) |
|
72 |
*/ |
|
73 |
String NO_FRAME = "1"; |
|
74 |
|
|
75 |
/** |
|
76 |
* 菜单正常状态 |
|
77 |
*/ |
|
78 |
String MENU_NORMAL = "0"; |
|
79 |
|
|
80 |
/** |
|
81 |
* 菜单停用状态 |
|
82 |
*/ |
|
83 |
String MENU_DISABLE = "1"; |
|
84 |
|
|
85 |
/** |
|
86 |
* 菜单类型(目录) |
|
87 |
*/ |
|
88 |
String TYPE_DIR = "M"; |
|
89 |
|
|
90 |
/** |
|
91 |
* 菜单类型(菜单) |
|
92 |
*/ |
|
93 |
String TYPE_MENU = "C"; |
|
94 |
|
|
95 |
/** |
|
96 |
* 菜单类型(按钮) |
|
97 |
*/ |
|
98 |
String TYPE_BUTTON = "F"; |
|
99 |
|
|
100 |
/** |
|
101 |
* Layout组件标识 |
|
102 |
*/ |
|
103 |
String LAYOUT = "Layout"; |
|
104 |
|
|
105 |
/** |
|
106 |
* ParentView组件标识 |
|
107 |
*/ |
|
108 |
String PARENT_VIEW = "ParentView"; |
|
109 |
|
|
110 |
/** |
|
111 |
* InnerLink组件标识 |
|
112 |
*/ |
|
113 |
String INNER_LINK = "InnerLink"; |
|
114 |
|
|
115 |
/** |
|
116 |
* 用户名长度限制 |
|
117 |
*/ |
|
118 |
int USERNAME_MIN_LENGTH = 2; |
|
119 |
int USERNAME_MAX_LENGTH = 20; |
|
120 |
|
|
121 |
/** |
|
122 |
* 密码长度限制 |
|
123 |
*/ |
|
124 |
int PASSWORD_MIN_LENGTH = 5; |
|
125 |
int PASSWORD_MAX_LENGTH = 20; |
|
126 |
|
|
127 |
/** |
|
128 |
* 管理员ID |
|
129 |
*/ |
|
130 |
String ADMIN_ID = "1"; |
|
131 |
|
|
132 |
} |