33 lines
631 B
Java
33 lines
631 B
Java
package com.youlai.system.common.enums;
|
|
|
|
import com.youlai.system.common.base.IBaseEnum;
|
|
import lombok.Getter;
|
|
|
|
/**
|
|
* 数据权限枚举
|
|
*
|
|
* @author haoxr
|
|
* @since 2.3.0
|
|
*/
|
|
public enum DataScopeEnum implements IBaseEnum<Integer> {
|
|
|
|
/**
|
|
* value 越小,数据权限范围越大
|
|
*/
|
|
ALL(0, "所有数据"),
|
|
DEPT_AND_SUB(1, "部门及子部门数据"),
|
|
DEPT(2, "本部门数据"),
|
|
SELF(3, "本人数据");
|
|
|
|
@Getter
|
|
private Integer value;
|
|
|
|
@Getter
|
|
private String label;
|
|
|
|
DataScopeEnum(Integer value, String label) {
|
|
this.value = value;
|
|
this.label = label;
|
|
}
|
|
}
|