|
|
@@ -1,8 +1,8 @@
|
|
|
{
|
|
|
"openapi": "3.1.0",
|
|
|
"info": {
|
|
|
- "title": "<<ym:serviceName>>",
|
|
|
- "description": "<<ym:serviceName>>的API文档",
|
|
|
+ "title": "<<ym:serviceTitle>>",
|
|
|
+ "description": "<<ym:serviceTitle>>的API文档",
|
|
|
"version": "1.0.0"
|
|
|
},
|
|
|
"tags": [
|
|
|
@@ -13,13 +13,13 @@
|
|
|
],
|
|
|
"paths": {
|
|
|
<<ym-loop:apiInfo removeEnd=",">>
|
|
|
- "/<<apiVersionNo>>/<<serviceName>>/<<groupName>>/<<methodName>>": {
|
|
|
+ "/v<<version>>/<<ym:serviceName>>/<<groupName>>/<<methodName>>": {
|
|
|
"<<ym-if:<<apiKind>><3>>get<</ym-if>><<ym-if:<<apiKind>>=3>>post<</ym-if>><<ym-if:<<apiKind>>=4>>put<</ym-if>><<ym-if:<<apiKind>>=5>>delete<</ym-if>>": {
|
|
|
"summary": "<<apiName>>",
|
|
|
"x-apifox-folder": "<<groupName>>",
|
|
|
"x-apifox-status": "released",
|
|
|
"deprecated": false,
|
|
|
- "description": "<div><div class=\"tips\"><strong>注意事项</strong><br><p><<apiDetail>></p><br></div><div class=\"apicontent apicontent2\"><strong>返回报文示例:</strong><br><pre>{<br> status: \"1\",<br>msg: \"\",<br> data: [{<br> }]<br>}<br></pre></div><div class=\"apicontent apicontent2\"><strong>axios调用示例</strong><br><pre>const params = {\n};\nRequest({\n url: this.UrlList.<<serviceName>>.<<groupName>><<methodName>>.url,\n method: this.UrlList.<<serviceName>>.<<groupName>><<methodName>>.method,\n params,\n})\n.then((res) => {\n if (res.status == 1) {\n // 返回参数正确逻辑\n } else {\n PublicFn.tips(res.msg);\n }\n})\n.catch((e) => {\n console.log(e);\n});\n<br></pre></div></div></div>",
|
|
|
+ "description": "<div><div class=\"tips\"><strong>注意事项</strong><br><p><<apiDetail>></p><br></div><div class=\"apicontent apicontent2\"><strong>返回报文示例:</strong><br><pre>{<br> status: \"1\",<br>msg: \"\",<br> data: [{<br> }]<br>}<br></pre></div><div class=\"apicontent apicontent2\"><strong>axios调用示例</strong><br><pre>const params = {\n};\nRequest({\n url: this.UrlList.<<ym:serviceName>>.<<groupName>><<methodName>>.url,\n method: this.UrlList.<<ym:serviceName>>.<<groupName>><<methodName>>.method,\n params,\n})\n.then((res) => {\n if (res.status == 1) {\n // 返回参数正确逻辑\n } else {\n PublicFn.tips(res.msg);\n }\n})\n.catch((e) => {\n console.log(e);\n});\n<br></pre></div></div></div>",
|
|
|
"tags": [
|
|
|
"<<groupName>>"
|
|
|
],
|