wang-hao-jie
2021-10-19 cc8111dbc369c1e82f159027ee8438912ae28128
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
package cn.exrick.xboot.core.common.constant;
 
/**
 * 常量
 * @author Exrickx
 */
public interface CommonConstant {
 
    /**
     * 用户默认头像
     */
    String USER_DEFAULT_AVATAR = "https://ooo.0o0.ooo/2019/04/28/5cc5a71a6e3b6.png";
 
    /**
     * 用户正常状态
     */
    Integer USER_STATUS_NORMAL = 0;
 
    /**
     * 用户禁用状态
     */
    Integer USER_STATUS_LOCK = -1;
 
    /**
     * 普通用户
     */
    Integer USER_TYPE_NORMAL = 0;
 
    /**
     * 管理员
     */
    Integer USER_TYPE_ADMIN = 1;
 
    /**
     * 全部数据权限
     */
    Integer DATA_TYPE_ALL = 0;
 
    /**
     * 自定义数据权限
     */
    Integer DATA_TYPE_CUSTOM = 1;
 
    /**
     * 本部门及以下
     */
    Integer DATA_TYPE_UNDER = 2;
 
    /**
     * 本部门
     */
    Integer DATA_TYPE_SAME = 3;
 
    /**
     * 正常状态
     */
    Integer STATUS_NORMAL = 0;
 
    /**
     * 禁用状态
     */
    Integer STATUS_DISABLE = -1;
 
    /**
     * 删除标志
     */
    Integer DEL_FLAG = 1;
 
    /**
     * 限流前缀
     */
    String LIMIT_PRE = "XBOOT_LIMIT:";
 
    /**
     * 限流标识
     */
    String LIMIT_ALL = "XBOOT_LIMIT_ALL";
 
    /**
     * 顶部菜单类型权限
     */
    Integer PERMISSION_NAV = -1;
 
    /**
     * 页面类型权限
     */
    Integer PERMISSION_PAGE = 0;
 
    /**
     * 操作类型权限
     */
    Integer PERMISSION_OPERATION = 1;
 
    /**
     * 1级菜单父id
     */
    String PARENT_ID = "0";
 
    /**
     * 0级菜单
     */
    Integer LEVEL_ZERO = 0;
 
    /**
     * 1级菜单
     */
    Integer LEVEL_ONE = 1;
 
    /**
     * 2级菜单
     */
    Integer LEVEL_TWO = 2;
 
    /**
     * 3级菜单
     */
    Integer LEVEL_THREE = 3;
 
    /**
     * 消息发送范围
     */
    Integer MESSAGE_RANGE_ALL = 0;
 
    /**
     * 消息发送范围指定用户
     */
    Integer MESSAGE_RANGE_USER = 1;
 
    /**
     * 未读
     */
    Integer MESSAGE_STATUS_UNREAD = 0;
 
    /**
     * 已读
     */
    Integer MESSAGE_STATUS_READ = 1;
 
    /**
     * github登录
     */
    Integer SOCIAL_TYPE_GITHUB = 0;
 
    /**
     * qq登录
     */
    Integer SOCIAL_TYPE_QQ = 1;
 
    /**
     * wechat登录
     */
    Integer SOCIAL_TYPE_WECHAT = 2;
 
    /**
     * 微博登录
     */
    Integer SOCIAL_TYPE_WEIBO = 3;
 
    /**
     * 钉钉登录
     */
    Integer SOCIAL_TYPE_DINGDING = 4;
 
    /**
     * 企业微信登录
     */
    Integer SOCIAL_TYPE_WORKWECHAT = 5;
 
    /**
     * 短信验证码key前缀
     */
    String PRE_SMS = "XBOOT_PRE_SMS:";
 
    /**
     * 邮件验证码key前缀
     */
    String PRE_EMAIL = "XBOOT_PRE_EMAIL:";
 
    /**
     * 本地文件存储
     */
    Integer OSS_LOCAL = 0;
 
    /**
     * 七牛云OSS存储
     */
    Integer OSS_QINIU = 1;
 
    /**
     * 阿里云OSS存储
     */
    Integer OSS_ALI = 2;
 
    /**
     * 腾讯云COS存储
     */
    Integer OSS_TENCENT = 3;
 
    /**
     * MINIO存储
     */
    Integer OSS_MINIO = 4;
 
    /**
     * 部门负责人类型 主负责人
     */
    Integer HEADER_TYPE_MAIN = 0;
 
    /**
     * 部门负责人类型 副负责人
     */
    Integer HEADER_TYPE_VICE = 1;
}