## 商品分類
?
**簡要描述:**
* 商品分類
**請求URL:**
* `https://api.zbztb.cn/api/public/v1/categories`
**請求方式:**
* GET
**參數:**無
**返回示例**
~~~
{
"message": [{
"cat_id": 1,
"cat_name": "大家電",
"cat_pid": 0,
"cat_level": 0,
"cat_deleted": false,
"cat_icon": "",
"children": [{
"cat_id": 3,
"cat_name": "電視",
"cat_pid": 1,
"cat_level": 1,
"cat_deleted": false,
"cat_icon": "",
"children": [{
"cat_id": 5,
"cat_name": "曲面電視",
"cat_pid": 3,
"cat_level": 2,
"cat_deleted": false,
"cat_icon": "https://api.zbztb.cn/full/2fb113b32f7a2b161f5ee4096c319afedc3fd5a1.jpg"
}]
}]
}],
"meta": {
"msg": "獲取成功",
"status": 200
}
}
~~~
**返回參數說明**
| 參數名 | 類型 | |
| --- | --- | --- |
| cat\_id | int | 分類id |
| cat\_name | string | 分類名稱 |
| children | array | 子節點 |
| cat\_icon | string | 圖標 |
**備注**
* 更多返回錯誤代碼請看首頁的錯誤代碼描述