ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
**简要描述:** - 商品分类 **请求URL:** - ` api/goods_category/getGoodsCategory ` **请求方式:** - get **参数:** |参数名|是否必选|类型|说明| |:---- |:---|:----- |----- | **返回示例** ``` { "code":1, "msg":"获取成功", "data":[ { "id":7, "name":"茶饮", "pid":0, "image":"http:\/\/\/uploads\/images\/20200615\/0afb980b8f77a9cc97f2798258a0dbfc.jpg", "level":1, "sons":[ { "id":11, "name":"奶茶", "pid":7, "image":"http:\/\/\/uploads\/images\/20200615\/303a400b887d0a293e3426e083d8f85f.jpg", "level":2, "sons":[ { "id":12, "name":"蓝莓奶茶", "pid":11, "image":"http:\/\/\/uploads\/images\/20200615\/bd50801b37a081aba8884d64aae924ae.jpg", "level":3 } ] }, { "id":8, "name":"水果茶", "pid":7, "image":"http:\/\/\/uploads\/images\/20200615\/53964e8e898e50d3b8de12397ffc9a1a.jpg", "level":2, "sons":[ { "id":10, "name":"西瓜茶", "pid":8, "image":"http:\/\/\/uploads\/images\/20200615\/71d322a698bbf1ea034f4a806f14ca9a.jpg", "level":3 }, { "id":9, "name":"柠檬茶", "pid":8, "image":"http:\/\/\/uploads\/images\/20200615\/c0e28795cac6aea7d408c21293d53466.jpg", "level":3 } ] } ] }, { "id":2, "name":"测试分类", "pid":0, "image":"http:\/\/\/uploads\/images\/20200613\/346576fcb17b80b56784e8642a315b0e.jpg", "level":1, "sons":[ { "id":3, "name":"面包", "pid":2, "image":"http:\/\/\/uploads\/images\/20200615\/cd4d23bc04a8b7c291dbcdd36dd8a3f9.jpg", "level":2, "sons":[ { "id":4, "name":"牛角", "pid":3, "image":"http:\/\/\/uploads\/images\/20200615\/7fed352db633538bdfdac01035dcec5f.jpg", "level":3 }, { "id":5, "name":"牛角", "pid":3, "image":"http:\/\/\/uploads\/images\/20200615\/7fed352db633538bdfdac01035dcec5f.jpg", "level":3 } ] } ] } ], "show":0, "time":"0.239968", } ``` **返回参数说明** |参数名|类型|说明| |:----- |:-----|----- | |id |varchar |id |name |varchar |商品分类名称 |image |int |商品分类图片 **备注** -