feat(govdoc): 补 structure/outline API 端点
This commit is contained in:
@@ -98,6 +98,16 @@ class IGovdocService(ABC):
|
||||
"""获取前端文档联动视图所需的段落 HTML。"""
|
||||
...
|
||||
|
||||
@abstractmethod
|
||||
async def GetRunStructure(self, runId: int) -> dict[str, Any]:
|
||||
"""获取文档结构统计(结构面板数据)。"""
|
||||
...
|
||||
|
||||
@abstractmethod
|
||||
async def GetRunOutline(self, runId: int) -> dict[str, Any]:
|
||||
"""获取文档大纲树(大纲面板数据)。"""
|
||||
...
|
||||
|
||||
@abstractmethod
|
||||
async def GetReportHtml(self, runId: int) -> dict[str, Any]:
|
||||
"""获取 HTML 报告内容或下载地址。"""
|
||||
|
||||
@@ -111,6 +111,14 @@ class GovdocServiceImpl(IGovdocService):
|
||||
logger.info("[Govdoc] GetRunParagraphs placeholder — runId=%s", runId)
|
||||
return {"runId": runId, "paragraphs": []}
|
||||
|
||||
async def GetRunStructure(self, runId: int) -> dict[str, Any]:
|
||||
logger.info("[Govdoc] GetRunStructure placeholder — runId=%s", runId)
|
||||
return {"runId": runId, "structure": []}
|
||||
|
||||
async def GetRunOutline(self, runId: int) -> dict[str, Any]:
|
||||
logger.info("[Govdoc] GetRunOutline placeholder — runId=%s", runId)
|
||||
return {"runId": runId, "outline": []}
|
||||
|
||||
async def GetReportHtml(self, runId: int) -> dict[str, Any]:
|
||||
logger.info("[Govdoc] GetReportHtml placeholder — runId=%s", runId)
|
||||
return {"runId": runId, "htmlUrl": ""}
|
||||
|
||||
Reference in New Issue
Block a user