商品分类
<h5>简要描述</h5>
<ul>
<li>无</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>{{host}}/goods/category</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>get</li>
</ul>
<h5>请求Query参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">示例值</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;"></td>
<td>是</td>
<td>string</td>
<td>分类搜索名称</td>
</tr>
<tr>
<td style="text-align: left;">pid</td>
<td style="text-align: left;"></td>
<td>是</td>
<td>string</td>
<td>分类pid 默认0</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
"code": 200,
"msg": "操作成功",
"time": 1716889933,
"data": [
{
"category_id": 63,
"pid": 0,
"name": "美妆\/个护"
},
{
"category_id": 69,
"pid": 0,
"name": "其他"
},
{
"category_id": 70,
"pid": 0,
"name": "数码"
},
{
"category_id": 92,
"pid": 0,
"name": "母婴"
},
{
"category_id": 94,
"pid": 0,
"name": "美妆护肤"
},
{
"category_id": 109,
"pid": 0,
"name": "食品饮料"
},
{
"category_id": 111,
"pid": 0,
"name": "珠宝首饰"
},
{
"category_id": 113,
"pid": 0,
"name": "钟表"
},
{
"category_id": 116,
"pid": 0,
"name": "电脑、办公"
},
{
"category_id": 118,
"pid": 0,
"name": "宠物生活"
},
{
"category_id": 121,
"pid": 0,
"name": "家纺"
},
{
"category_id": 125,
"pid": 0,
"name": "家庭清洁"
},
{
"category_id": 139,
"pid": 0,
"name": "宠物生活"
},
{
"category_id": 141,
"pid": 0,
"name": "家居日用"
},
{
"category_id": 147,
"pid": 0,
"name": "个人护理"
},
{
"category_id": 153,
"pid": 0,
"name": "厨具"
},
{
"category_id": 158,
"pid": 0,
"name": "汽车用品"
},
{
"category_id": 162,
"pid": 0,
"name": "箱包皮具"
},
{
"category_id": 164,
"pid": 0,
"name": "医疗保健"
},
{
"category_id": 166,
"pid": 0,
"name": "食品\/生鲜"
},
{
"category_id": 169,
"pid": 0,
"name": "教育用品"
},
{
"category_id": 172,
"pid": 0,
"name": "运动户外"
},
{
"category_id": 174,
"pid": 0,
"name": "服饰内衣"
},
{
"category_id": 176,
"pid": 0,
"name": "酒类"
},
{
"category_id": 178,
"pid": 0,
"name": "服饰穿搭"
},
{
"category_id": 181,
"pid": 0,
"name": "滋补保健"
},
{
"category_id": 184,
"pid": 0,
"name": "家居\/家装"
},
{
"category_id": 187,
"pid": 0,
"name": "运动\/户外"
},
{
"category_id": 190,
"pid": 0,
"name": "3C数码"
},
{
"category_id": 193,
"pid": 0,
"name": "箱包\/首饰"
},
{
"category_id": 196,
"pid": 0,
"name": "母婴\/玩具"
},
{
"category_id": 199,
"pid": 0,
"name": "电脑\/办公"
}
]
}
</code></pre>
<h5>成功返回示例的参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">string</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">string</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">time</td>
<td style="text-align: left;">string</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">array</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">category_id</td>
<td style="text-align: left;">string</td>
<td>分类id</td>
</tr>
<tr>
<td style="text-align: left;">pid</td>
<td style="text-align: left;">string</td>
<td>分类父级id</td>
</tr>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">string</td>
<td>分类名称</td>
</tr>
</tbody>
</table>