feat: add tenant-scoped rule and permission management

This commit is contained in:
wren
2026-05-21 22:03:08 +08:00
parent a2c2bf1969
commit 1f1bccf3b3
193 changed files with 64463 additions and 1771 deletions
@@ -18,6 +18,11 @@ class IEvaluationPointService(ABC):
@abstractmethod
async def ListPoints(
self,
CurrentUserId: int,
UserArea: str | None,
UserRole: str | None,
CurrentTenantCode: str | None,
CurrentTenantName: str | None,
Name: str | None,
Code: str | None,
Risk: str | None,
@@ -25,26 +30,61 @@ class IEvaluationPointService(ABC):
GroupPid: int | None,
GroupId: int | None,
DocumentAttributeType: str | None,
Area: str | None,
FilterArea: str | None,
FilterTenantCode: str | None,
FilterTenantName: str | None,
Page: int,
PageSize: int,
) -> EvaluationPointListVO:
...
@abstractmethod
async def GetPoint(self, PointId: int) -> EvaluationPointVO:
async def GetPoint(
self,
CurrentUserId: int,
UserArea: str | None,
UserRole: str | None,
TenantCode: str | None,
TenantName: str | None,
PointId: int,
) -> EvaluationPointVO:
...
@abstractmethod
async def CreatePoint(self, Body: EvaluationPointCreateDTO) -> EvaluationPointVO:
async def CreatePoint(
self,
CurrentUserId: int,
UserArea: str | None,
UserRole: str | None,
TenantCode: str | None,
TenantName: str | None,
Body: EvaluationPointCreateDTO,
) -> EvaluationPointVO:
...
@abstractmethod
async def UpdatePoint(self, PointId: int, Body: EvaluationPointUpdateDTO) -> EvaluationPointVO:
async def UpdatePoint(
self,
CurrentUserId: int,
UserArea: str | None,
UserRole: str | None,
TenantCode: str | None,
TenantName: str | None,
PointId: int,
Body: EvaluationPointUpdateDTO,
) -> EvaluationPointVO:
...
@abstractmethod
async def DeletePoint(self, PointId: int) -> EvaluationPointDeleteVO:
async def DeletePoint(
self,
CurrentUserId: int,
UserArea: str | None,
UserRole: str | None,
TenantCode: str | None,
TenantName: str | None,
PointId: int,
) -> EvaluationPointDeleteVO:
...
@abstractmethod