27 lines
710 B
Python
27 lines
710 B
Python
"""文档服务接口。"""
|
|
|
|
from abc import ABC, abstractmethod
|
|
|
|
from fastapi_modules.fastapi_leaudit.domian.vo.documentVo import DocumentUploadVO
|
|
|
|
|
|
class IDocumentService(ABC):
|
|
"""文档服务接口。"""
|
|
|
|
@abstractmethod
|
|
async def Upload(
|
|
self,
|
|
FileName: str,
|
|
FileContent: bytes,
|
|
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,
|
|
) -> DocumentUploadVO:
|
|
"""上传文档并建立 LeAudit document/file 记录。"""
|
|
...
|