模块列表
<p>欢迎使用ShowDoc!欢迎使用ShowDoc!欢迎使用ShowDoc!</p>
<p><strong>简要描述:</strong> </p>
<ul>
<li>列表</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>192.168.0.226:8093/api/blocks</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>GET </li>
</ul>
<p><strong>资源类型:</strong>
QueryString</p>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"resCode": 0,
"resMsg": "ok",
"data": [
{
"id": 4,
"name": "测试模块4",
"subtitle": "测试模块4",
"description": "测试模块4测试模块4测试模块4测试模块4",
"sort": 3,
"status": 1,
"created_at": "2020-11-25 16:49:25",
"entrances": [
{
"id": 3,
"block_id": 4,
"name": "入口2",
"link_type": 2,
"link": null,
"sort": 2,
"status": 1,
"created_at": "2020-11-26 09:11:22"
},
{
"id": 4,
"block_id": 4,
"name": "入口3",
"link_type": 1,
"link": "http://www.youyi800.com/public/youyiyun/jurisdiction/index.html#g=1&p=2_1_%E9%A6%96%E9%A1%B5%E7%AE%A1%E7%90%86",
"sort": 3,
"status": 1,
"created_at": "2020-11-26 09:11:57"
}
]
},
{
"id": 3,
"name": "测试模块3",
"subtitle": "测试模块3测试模块3",
"description": "测试模块3测试模块3测试模块3测试模块3",
"sort": 2,
"status": 1,
"created_at": "2020-11-25 16:41:52",
"entrances": []
},
{
"id": 2,
"name": "测试模块2",
"subtitle": "测试模块2测试模块2",
"description": "测试模块2测试模块2测试模块2",
"sort": 1,
"status": 1,
"created_at": "2020-11-25 16:41:11",
"entrances": [
{
"id": 2,
"block_id": 2,
"name": "入口1",
"link_type": 1,
"link": "abc.cn",
"sort": 1,
"status": 0,
"created_at": "2020-11-21 14:37:07"
},
{
"id": 5,
"block_id": 2,
"name": "入口4",
"link_type": 1,
"link": "https://www.baidu.com/",
"sort": 4,
"status": 1,
"created_at": "2020-11-26 09:15:03"
}
]
}
]
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!欢迎使用ShowDoc!欢迎使用ShowDoc!</p>