调整 DataScopeEnum 到 yudao-module-system-api 包下,合理~

This commit is contained in:
YunaiV
2022-03-03 13:12:52 +08:00
parent 3201288036
commit d2636a7787
11 changed files with 12 additions and 12 deletions

View File

@ -1,30 +0,0 @@
package cn.iocoder.yudao.framework.security.core.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 数据范围枚举类
*
* 用于实现数据级别的权限
*
* @author 芋道源码
*/
@Getter
@AllArgsConstructor
public enum DataScopeEnum {
ALL(1), // 全部数据权限
DEPT_CUSTOM(2), // 指定部门数据权限
DEPT_ONLY(3), // 部门数据权限
DEPT_AND_CHILD(4), // 部门及以下数据权限
SELF(5); // 仅本人数据权限
/**
* 范围
*/
private final Integer scope;
}