feat(govdoc): 补 structure/outline API 端点

This commit is contained in:
wren
2026-05-13 15:25:13 +08:00
parent eb5acc8da9
commit b532ffc3b9
5 changed files with 71 additions and 0 deletions
@@ -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 报告内容或下载地址。"""