顶部导航
<h5>简要描述</h5>
<ul>
<li>顶部导航接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://xx.com/api/nav/topNav</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET </li>
</ul>
<h5>请求参数</h5>
<ul>
<li>无参数</li>
</ul>
<h5>返回示例</h5>
<pre><code> {
"code": 0,
"msg": "",
"data": {
nav: [
{
path: "/",
name: "home",
title: "首页",
exact: true,
},
{
path: "/print",
name: "print",
title: "立刻报价",
exact: false,
},
{
path: "/case",
name: "case",
title: "行业案例",
exact: false,
},
{
path: "/mater",
name: "mater",
title: "材料展示",
exact: false,
},
{
path: "/new",
name: "new",
title: "新闻中心",
exact: false,
},
{
path: "/center",
name: "center",
title: "个人中心",
exact: false,
},
],
}
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: center;">参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">name</td>
<td>string</td>
<td>路由名称/英文名称</td>
</tr>
<tr>
<td style="text-align: center;">exact</td>
<td>Boolean</td>
<td>精确模糊匹配导航</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>