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; } }