feat: add document-types endpoint and date/user filters to list
- GET /api/document-types: returns {id, name, code} from
leaudit_document_types, with optional ?ids=1,2,3 filter
- GET /api/documents/list: added userId, dateFrom, dateTo
query params for filtering by uploading user and date range
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
from fastapi_modules.fastapi_leaudit.domian.vo.documentVo import DocumentListPageVO, DocumentUploadVO
|
||||
from fastapi_modules.fastapi_leaudit.domian.vo.documentVo import DocumentListPageVO, DocumentTypeItemVO, DocumentUploadVO
|
||||
|
||||
|
||||
class IDocumentService(ABC):
|
||||
@@ -35,6 +35,14 @@ class IDocumentService(ABC):
|
||||
Region: str | None = None,
|
||||
ProcessingStatus: str | None = None,
|
||||
ResultStatus: str | None = None,
|
||||
UserId: int | None = None,
|
||||
DateFrom: str | None = None,
|
||||
DateTo: str | None = None,
|
||||
) -> DocumentListPageVO:
|
||||
"""获取文档列表(仅最新版本,附历史版本摘要)。"""
|
||||
...
|
||||
|
||||
@abstractmethod
|
||||
async def ListDocumentTypes(self, Ids: list[int] | None = None) -> list[DocumentTypeItemVO]:
|
||||
"""获取文档类型列表。"""
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user