Skip to content
关注公众号,获取新课通知

商品分类列表


接口功能

获取商品分类列表数据

URL

http://ceshi5.dishait.cn/admin/category

支持格式

JSON

HTTP请求方式

GET

header头
参数必选类型说明
tokentrueStringtoken
请求参数

接口示例

地址:http://ceshi5.dishait.cn/admin/category

json5
{
   "msg": "ok",
   "data": [
       {
           "id": 1,
           "name": "新品",
           "status": 1,
           "create_time": "2019-08-17 00:57:12",
           "update_time": "2020-01-18 02:33:18",
           "category_id": 0,
           "order": 0,
           "child": []
       },
       {
           "id": 4,
           "name": "智慧屏幕",
           "status": 1,
           "create_time": "2019-08-17 00:57:12",
           "update_time": "2020-01-18 02:33:11",
           "category_id": 0,
           "order": 1,
           "child": [
               {
                   "id": 15,
                   "name": "哈哈哈",
                   "status": 1,
                   "create_time": "2020-01-18 01:24:59",
                   "update_time": "2020-01-18 02:33:11",
                   "category_id": 4,
                   "order": 2,
                   "child": []
               },
               {
                   "id": 3,
                   "name": "荣X手机",
                   "status": 1,
                   "create_time": "2019-08-17 00:57:12",
                   "update_time": "2020-01-18 02:33:11",
                   "category_id": 4,
                   "order": 3,
                   "child": []
               }
           ]
       },
       {
           "id": 6,
           "name": "平板",
           "status": 1,
           "create_time": "2019-08-17 00:57:12",
           "update_time": "2020-01-18 02:33:11",
           "category_id": 0,
           "order": 4,
           "child": [
               {
                   "id": 12,
                   "name": "ipad",
                   "status": 1,
                   "create_time": "2019-08-17 00:57:12",
                   "update_time": "2020-01-18 02:33:11",
                   "category_id": 6,
                   "order": 5,
                   "child": []
               },
               {
                   "id": 5,
                   "name": "笔记本",
                   "status": 1,
                   "create_time": "2019-08-17 00:57:12",
                   "update_time": "2020-01-18 02:33:11",
                   "category_id": 6,
                   "order": 6,
                   "child": []
               }
           ]
       },
       {
           "id": 2,
           "name": "华X手机",
           "status": 1,
           "create_time": "2019-08-17 00:57:12",
           "update_time": "2020-01-18 02:33:11",
           "category_id": 0,
           "order": 7,
           "child": []
       }
   ]

}