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
| package com.qianwen.core.datascope.enums;
|
| /* loaded from: blade-starter-datascope-9.3.0.1-SNAPSHOT.jar:org/springblade/core/datascope/enums/DataScopeEnum.class */
| public enum DataScopeEnum {
| ALL(1, "全部"),
| OWN(2, "本人可见"),
| OWN_DEPT(3, "所在机构可见"),
| OWN_DEPT_CHILD(4, "所在机构及子级可见"),
| CUSTOM(5, "自定义");
|
| private final int type;
| private final String description;
|
| DataScopeEnum(final int type, final String description) {
| this.type = type;
| this.description = description;
| }
|
| public int getType() {
| return this.type;
| }
|
| public String getDescription() {
| return this.description;
| }
|
| public static DataScopeEnum of(Integer dataScopeType) {
| if (dataScopeType == null) {
| return null;
| }
| DataScopeEnum[] values = values();
| for (DataScopeEnum scopeTypeEnum : values) {
| if (scopeTypeEnum.type == dataScopeType.intValue()) {
| return scopeTypeEnum;
| }
| }
| return null;
| }
| }
|
|