分类列表路由
<h5>接口描述</h5>
<ul>
<li>分类类别模板</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/api/admin/category</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET</li>
</ul>
<h5>请求头部</h5>
<p>|参数名|必选|类型|说明|
|:---- |:---|:----- |----- |
|Authorization |是 |string |JWT token|</p>
<h5>返回示例</h5>
<ul>
<li>状态码 200 请求成功</li>
</ul>
<pre><code>[
{
&quot;id&quot;: 1,
&quot;pid&quot;: 0,
&quot;level&quot;: 1,
&quot;name&quot;: &quot;电子数码&quot;,
&quot;status&quot;: 1,
&quot;children&quot;: [
{
&quot;id&quot;: 3,
&quot;pid&quot;: 1,
&quot;name&quot;: &quot;手机&quot;,
&quot;level&quot;: 2,
&quot;status&quot;: 1,
&quot;children&quot;: [
{
&quot;id&quot;: 5,
&quot;pid&quot;: 3,
&quot;name&quot;: &quot;华为&quot;,
&quot;level&quot;: 3,
&quot;status&quot;: 1
},
{
&quot;id&quot;: 6,
&quot;pid&quot;: 3,
&quot;name&quot;: &quot;小米&quot;,
&quot;level&quot;: 3,
&quot;status&quot;: 1
}
]
},
{
&quot;id&quot;: 4,
&quot;pid&quot;: 1,
&quot;name&quot;: &quot;电脑&quot;,
&quot;level&quot;: 2,
&quot;status&quot;: 1,
&quot;children&quot;: [
{
&quot;id&quot;: 7,
&quot;pid&quot;: 4,
&quot;name&quot;: &quot;华硕&quot;,
&quot;level&quot;: 3,
&quot;status&quot;: 1
}
]
}
]
},
{
&quot;id&quot;: 2,
&quot;pid&quot;: 0,
&quot;level&quot;: 1,
&quot;name&quot;: &quot;服装衣帽&quot;,
&quot;status&quot;: 1,
&quot;children&quot;: [
{
&quot;id&quot;: 9,
&quot;pid&quot;: 2,
&quot;name&quot;: &quot;男装&quot;,
&quot;level&quot;: 2,
&quot;status&quot;: 1,
&quot;children&quot;: []
},
{
&quot;id&quot;: 10,
&quot;pid&quot;: 2,
&quot;name&quot;: &quot;女装&quot;,
&quot;level&quot;: 2,
&quot;status&quot;: 1,
&quot;children&quot;: []
}
]
}
]</code></pre>
<ul>
<li>
<p>状态码 200 成功</p>
</li>
<li>状态码 401</li>
</ul>