ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
~~~[api] get:shop/product_type/index <<< success { "data": [         { "id": 5, "title": "1111", "image_id": null, "pid": 0, "level": 1, "status": true, "sort": 1, "created_at": "2020-03-08 11:30:06", "updated_at": "", "image_one": null         },         { "id": 1, "title": "测试一级", "image_id": 1, "pid": 0, "level": 1, "status": true, "sort": 1, "created_at": "2020-03-08 09:08:10", "updated_at": "", "image_url": "http://www.serveradmin.com/upload/images/common/logo.png", "children": [                 { "id": 4, "title": "2222", "image_id": 1, "pid": 1, "level": 2, "status": true, "sort": 1, "created_at": "2020-03-08 10:43:04", "updated_at": "", "image_url": "http://www.serveradmin.com/upload/images/common/logo.png"                 },  { "id": 2, "title": "测试二级", "image_id": null, "pid": 1, "level": 2, "status": true, "sort": 1, "created_at": "2020-03-08 09:08:10", "updated_at": "", "image_one": null                 }             ]         },         { "id": 3, "title": "2222", "image_id": 1, "pid": 0, "level": 1, "status": false, "sort": 10, "created_at": "2020-03-08 10:28:06", "updated_at": "2020-03-08 10:56:40", "image_url": "http://www.serveradmin.com/upload/images/common/logo.png"         },         { "id": 6, "title": "2222", "image_id": 2, "pid": 0, "level": 1, "status": true, "sort": 12, "created_at": "2020-03-08 11:30:51", "updated_at": "", "image_url": "http://www.serveradmin.com/upload/images/20200308/S8Fedg3a5qxSb0YvlsKUwP3HTXrA2eTC1cJ8gWA9.jpeg", "children": [                 { "id": 7, "title": "33333", "image_id": null, "pid": 6, "level": 2, "status": true, "sort": 1, "created_at": "2020-03-08 11:44:53", "updated_at": "2020-03-08 12:03:17", "image_one": null                 }             ]         }     ], "code": 8888, "msg": "成功!" } ~~~ ## **成功发回参数说明** |参数|是否必须|参数类型|说明| |-|-|-|-| |code|是|int|表示请求后的状态| |msg|是|string|表示请求提示信息| |data|是|object|返回数据| ## **data数据说明** |参数|是否必须|参数类型|说明| |-|-|-|-| |id|是|int|表示分类ID| |title|是|string|表示分类名称| |status|是|Boolean|显示状态:false=隐藏,true=显示| |image_id|是|int|表示图片id| |level|是|int|表示级别| |image_url|是|string|表示图片路径| |pid|是|int|父级ID| |sort|是|int|排序| |created_at|是|string|创建时间| |updated_at|是|string|更新时间|