refactor: 枚举值不以0作为值调整

This commit is contained in:
Ray.Hao
2025-03-31 08:18:00 +08:00
parent 594a704df3
commit 594eb2befb
2 changed files with 9 additions and 9 deletions

View File

@@ -6,7 +6,7 @@ import lombok.Getter;
/**
* 数据权限枚举
*
* @author haoxr
* @author Ray.Hao
* @since 2.3.0
*/
@Getter
@@ -15,10 +15,10 @@ public enum DataScopeEnum implements IBaseEnum<Integer> {
/**
* value 越小,数据权限范围越大
*/
ALL(0, "所有数据"),
DEPT_AND_SUB(1, "部门及子部门数据"),
DEPT(2, "本部门数据"),
SELF(3, "本人数据");
ALL(1, "所有数据"),
DEPT_AND_SUB(2, "部门及子部门数据"),
DEPT(3, "本部门数据"),
SELF(4, "本人数据");
private final Integer value;