from enum import Enum from core.enums.base_enum import BaseEnum class DataScopeTypeEnum(Enum): """数据权限范围类型枚举""" DEPT = "dept" CUSTOM = "custom" class DataScopeEnum(BaseEnum): ALL = {"key": 1, "title": "所有数据权限"} CUSTOM = {"key": 2, "title": "自定义数据权限"} DEPT = {"key": 3, "title": "本部门数据权限"} DEPT_AND_CHILD = {"key": 4, "title": "本部门及子部门数据权限"} SELF = {"key": 5, "title": "仅本人数据权限"}