feat: add document type root management

This commit is contained in:
wren
2026-05-06 14:20:28 +08:00
parent 201e3adc18
commit c4694e11f0
8 changed files with 282 additions and 10 deletions
@@ -6,6 +6,9 @@ from fastapi_modules.fastapi_leaudit.domian.vo.documentVo import (
DocumentDetailVO,
DocumentListPageVO,
DocumentStatusItemVO,
DocumentTypeRootCreateDTO,
DocumentTypeRootItemVO,
DocumentTypeRootUpdateDTO,
DocumentUpdateDTO,
DocumentTypeCreateDTO,
DocumentTypeItemVO,
@@ -138,3 +141,23 @@ class IDocumentService(ABC):
async def DeleteDocumentType(self, Id: int) -> None:
"""删除文档类型(软删除)。"""
...
@abstractmethod
async def ListDocumentTypeRoots(self, EntryModuleId: int | None = None) -> list[DocumentTypeRootItemVO]:
"""获取一级文档类型(业务大类)列表。"""
...
@abstractmethod
async def GetDocumentTypeRoot(self, Id: int) -> DocumentTypeRootItemVO:
"""获取单个一级文档类型(业务大类)。"""
...
@abstractmethod
async def CreateDocumentTypeRoot(self, Body: DocumentTypeRootCreateDTO) -> DocumentTypeRootItemVO:
"""创建一级文档类型(业务大类)。"""
...
@abstractmethod
async def UpdateDocumentTypeRoot(self, Id: int, Body: DocumentTypeRootUpdateDTO) -> DocumentTypeRootItemVO:
"""更新一级文档类型(业务大类)。"""
...