分类列表树状结构

简要描述
请求URL
  • http://{{host}}/product.Productcate/getProductCateList
请求方式
  • post
Header
header 必选 类型 说明
token string
返回示例
{
  "data": [
    {
      "id": 9,
      "pid": 0,
      "pids": "0",
      "classname": "11",
      "english": null,
      "create_time": "2021-11-18 11:10:17",
      "is_delete": 0,
      "order_num": 99999,
      "level": 1
    },
    {
      "id": 8,
      "pid": 0,
      "pids": "0",
      "classname": "美术",
      "english": null,
      "create_time": "2021-11-18 11:09:27",
      "is_delete": 0,
      "order_num": 99999,
      "level": 1
    },
    {
      "id": 7,
      "pid": 0,
      "pids": "0",
      "classname": "旅游",
      "english": "aa",
      "create_time": "2021-09-14 10:01:54",
      "is_delete": 1,
      "order_num": 99999,
      "level": 1
    },
    {
      "id": 4,
      "pid": 0,
      "pids": "0",
      "classname": "健身",
      "english": "jianshen",
      "create_time": "2021-06-29 08:23:01",
      "is_delete": 0,
      "order_num": 99999,
      "level": 1
    },
    {
      "id": 6,
      "pid": 0,
      "pids": "0",
      "classname": "美业",
      "english": "meiye",
      "create_time": "2021-06-29 08:23:01",
      "is_delete": 0,
      "order_num": 99999,
      "level": 1
    },
    {
      "id": 3,
      "pid": 0,
      "pids": "0",
      "classname": "餐饮",
      "english": "canyin",
      "create_time": "2021-06-24 17:05:45",
      "is_delete": 0,
      "order_num": 99999,
      "level": 1,
      "child": [
        {
          "id": 10,
          "pid": 3,
          "pids": "0,3",
          "classname": "二级",
          "english": null,
          "create_time": "2021-11-18 11:11:10",
          "is_delete": 0,
          "order_num": 99999,
          "level": 2,
          "child": [
            {
              "id": 12,
              "pid": 10,
              "pids": "0,3,10",
              "classname": "211",
              "english": null,
              "create_time": "2021-11-18 11:18:00",
              "is_delete": 0,
              "order_num": 99999,
              "level": 3
            },
            {
              "id": 11,
              "pid": 10,
              "pids": "0,3,10",
              "classname": "三级",
              "english": null,
              "create_time": "2021-11-18 11:16:00",
              "is_delete": 0,
              "order_num": 99999,
              "level": 3,
              "child": [
                {
                  "id": 13,
                  "pid": 11,
                  "pids": "0,3,10,11",
                  "classname": "四级",
                  "english": null,
                  "create_time": "2021-11-18 11:23:36",
                  "is_delete": 0,
                  "order_num": 99999,
                  "level": 4
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": 5,
      "pid": 0,
      "pids": "0",
      "classname": "酒店",
      "english": "jiudian",
      "create_time": "2021-06-24 17:05:45",
      "is_delete": 0,
      "order_num": 99999,
      "level": 1
    }
  ],
  "code": 20000
}
返回参数说明
参数名 类型 说明
data array 数据
id string 分类id
pid string 不用管
pids string 不用管
classname string 分类名称
english object 英文名称
create_time string 添加时间
is_delete string 不用管
order_num string 不用管
level string 不用管
child array 上级的子级
child.id string 子级的id
child.pid string 不用管
child.pids string 不用管
child.classname string 子级名称
child.english object 英文名称
child.create_time string 创建时间
child.is_delete string 不用管
child.order_num string 不用管
child.level string 不用管
child.child array 上级的子级
child.child.id string 子级的id
child.child.pid string 不用管
child.child.pids string 不用管
child.child.classname string 名称
child.child.english object 英文名称
child.child.create_time string 创建时间
child.child.is_delete string 不用管
child.child.order_num string 不用管
child.child.level string 不用管
code string 状态吗
备注