feat: add document type root management
This commit is contained in:
@@ -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:
|
||||
"""更新一级文档类型(业务大类)。"""
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user