**简要描述:** - 商品分类 **请求URL:** - ` api/goods_category/getGoodsCategory ` **请求方式:** - get **参数:** |参数名|是否必选|类型|说明| |:---- |:---|:----- |----- | |client|选填 |int |1-移动端;2-pc端 | **返回示例** ``` { "code": 1, "msg": "获取成功", "data": [ { "id": 0, "name": "品牌推荐", "type": 0, "sons": [ { "id": 0, "name": "热门品牌", "type": 0, "sons": [ { "id": 2, "name": "小米", "image": "http://likeshop.yixiangonline.com/uploads/images/background/20201012/a1d556e7f10a709a8c0d93b35a19dd1e.jpg", "type": 0 }, { "id": 3, "name": "oppo", "image": "http://likeshop.yixiangonline.com/uploads/images/background/20201021/a545b11d9e53beba29cb609571a5905a.jpg", "type": 0 } ] } ] }, { "id": 1, "name": "手机", "pid": 0, "image": "http://likeshop.yixiangonline.com/uploads/images/background/20201012/a1d556e7f10a709a8c0d93b35a19dd1e.jpg", "level": 1, "type": 1, "sons": [ { "id": 3, "name": "小米", "pid": 1, "image": "http://likeshop.yixiangonline.com/uploads/images/background/20201013/a9c7df0d62ac83b7bef97f48682fcc5c.jpg", "level": 2, "type": 1, "sons": [ { "id": 4, "name": "数字系列", "pid": 3, "image": "http://likeshop.yixiangonline.com/uploads/images/background/20201013/a9c7df0d62ac83b7bef97f48682fcc5c.jpg", "level": 3, "type": 1 }, { "id": 5, "name": "红米", "pid": 3, "image": "http://likeshop.yixiangonline.com/uploads/images/background/20201013/a9c7df0d62ac83b7bef97f48682fcc5c.jpg", "level": 3, "type": 1 } ] } ] }, { "id": 2, "name": "食品", "pid": 0, "image": "http://likeshop.yixiangonline.com/uploads/images/background/20201012/a1d556e7f10a709a8c0d93b35a19dd1e.jpg", "level": 1, "type": 1, "sons": [] } ] } ``` **返回参数说明** |参数名|类型|说明| |:----- |:-----|----- | |id |varchar |id |name |varchar |分类名称 |image |int |分类图片 |type|int |类型 :0-品牌;1-分类 **备注** -