feat: add document versioning and list API
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
from fastapi_modules.fastapi_leaudit.domian.vo.documentVo import DocumentUploadVO
|
||||
from fastapi_modules.fastapi_leaudit.domian.vo.documentVo import DocumentListPageVO, DocumentUploadVO
|
||||
|
||||
|
||||
class IDocumentService(ABC):
|
||||
@@ -16,11 +16,25 @@ class IDocumentService(ABC):
|
||||
ContentType: str | None,
|
||||
TypeId: int | None = None,
|
||||
TypeCode: str | None = None,
|
||||
BizDocumentId: int | None = None,
|
||||
Region: str = "default",
|
||||
FileRole: str = "primary",
|
||||
CreatedBy: int | None = None,
|
||||
AutoRun: bool = False,
|
||||
Speed: str = "normal",
|
||||
) -> DocumentUploadVO:
|
||||
"""上传文档并建立 LeAudit document/file 记录。"""
|
||||
...
|
||||
|
||||
@abstractmethod
|
||||
async def ListDocuments(
|
||||
self,
|
||||
Page: int = 1,
|
||||
PageSize: int = 20,
|
||||
Keyword: str | None = None,
|
||||
TypeCode: str | None = None,
|
||||
Region: str | None = None,
|
||||
ProcessingStatus: str | None = None,
|
||||
ResultStatus: str | None = None,
|
||||
) -> DocumentListPageVO:
|
||||
"""获取文档列表(仅最新版本,附历史版本摘要)。"""
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user