From e6e401595ddafd3e4f269415f08570d6fd3a792f Mon Sep 17 00:00:00 2001 From: weizhiqiang <598748873@qq.com> Date: Sat, 26 Feb 2022 16:08:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=A5=E5=8F=82=E5=AD=90?= =?UTF-8?q?=E9=A1=B9=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/template/tpl/apiPage/apiPage.html | 11 +++++++++++ .../resources/template/tpl/apiPage/mdModelFile.tpl | 5 +++++ 2 files changed, 16 insertions(+) diff --git a/api/src/main/resources/template/tpl/apiPage/apiPage.html b/api/src/main/resources/template/tpl/apiPage/apiPage.html index 5024fc68c..049db1117 100644 --- a/api/src/main/resources/template/tpl/apiPage/apiPage.html +++ b/api/src/main/resources/template/tpl/apiPage/apiPage.html @@ -228,6 +228,17 @@ {{default}} {{exampleDefault}} + {{#each children}} + + - {{id}} + {{name}} + {{type}} + {{var}} + {{ref}} + {{default}} + {{exampleDefault}} + + {{/each}} {{/each}} diff --git a/api/src/main/resources/template/tpl/apiPage/mdModelFile.tpl b/api/src/main/resources/template/tpl/apiPage/mdModelFile.tpl index 281cc60b8..2a3d9ede2 100644 --- a/api/src/main/resources/template/tpl/apiPage/mdModelFile.tpl +++ b/api/src/main/resources/template/tpl/apiPage/mdModelFile.tpl @@ -7,12 +7,17 @@ ### 映射地址:{{path}} +### 请求类型:{{method}} + ### 参数(Parameters): | 前端参数 | 后端参数 | 字段类型 | 参数描述 | 限制条件 | 默认值 | 示例值 | | -------- | -------- | -------- | -------- | -------- | -------- | -------- | {{#each list}} | {{id}} | {{name}} | {{type}} | {{var}} | {{ref}} | {{default}} | {{exampleDefault}} | + {{#each children}} +| - {{id}} | {{name}} | {{type}} | {{var}} | {{ref}} | {{default}} | {{exampleDefault}} | + {{/each}} {{/each}} ### 接口返回结果(Result): -- GitLab