feat: add backend rule group and permission support

This commit is contained in:
wren
2026-05-06 09:40:37 +08:00
parent 7acbe0f1d9
commit 76ba7e65ed
45 changed files with 6175 additions and 110 deletions
@@ -0,0 +1,34 @@
from abc import ABC, abstractmethod
from fastapi_modules.fastapi_leaudit.domian.Dto.promptTemplateDto import PromptTemplateCreateDTO, PromptTemplateUpdateDTO
from fastapi_modules.fastapi_leaudit.domian.vo.promptTemplateVo import PromptTemplateListVO, PromptTemplateTypeListVO, PromptTemplateVO
class IPromptTemplateService(ABC):
@abstractmethod
async def ListTemplates(self, Search: str | None, TemplateTypes: list[str] | None, Status: int | None, Page: int, PageSize: int) -> PromptTemplateListVO:
...
@abstractmethod
async def GetTemplate(self, TemplateId: int) -> PromptTemplateVO:
...
@abstractmethod
async def CreateTemplate(self, Body: PromptTemplateCreateDTO) -> PromptTemplateVO:
...
@abstractmethod
async def UpdateTemplate(self, TemplateId: int, Body: PromptTemplateUpdateDTO) -> PromptTemplateVO:
...
@abstractmethod
async def DeleteTemplate(self, TemplateId: int) -> None:
...
@abstractmethod
async def GetTemplateTypes(self) -> PromptTemplateTypeListVO:
...
@abstractmethod
async def DuplicateTemplate(self, TemplateId: int, NewCode: str | None) -> PromptTemplateVO:
...