From 10bc3a0317cca36bb1fa53687aed23063ea5f786 Mon Sep 17 00:00:00 2001 From: butcher-hub Date: Thu, 4 Aug 2022 19:18:25 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E3=80=91openApi=E6=96=87=E6=A1=A3=E6=8B=89=E5=8F=96=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server-api/src/main/java/cn/torna/api/open/DocApi.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/server-api/src/main/java/cn/torna/api/open/DocApi.java b/server/server-api/src/main/java/cn/torna/api/open/DocApi.java index 814f7fb5..61bf69e1 100644 --- a/server/server-api/src/main/java/cn/torna/api/open/DocApi.java +++ b/server/server-api/src/main/java/cn/torna/api/open/DocApi.java @@ -381,5 +381,10 @@ public class DocApi { docInfoService.updateDocFolderName(param.getId(), name, user); } - + @Api(name = "doc.pull") + @ApiDocMethod(description = "拉取文档", order = 6) + public List docPull() { + Module module = RequestContext.getCurrentContext().getModule(); + return docInfoService.listModuleDoc(module.getId()); + } } -- Gitee