分页获取分类

请求方法:GET

请求地址:/category/page

请求参数:
current:当前页,非必传,默认1
size:每页数量,非必传,默认5

需要access_token:

需要管理员权限:

接口说明:分页获取分类

获取成功:

{
  "code": 0,
  "message": "成功",
  "data": {
    "records": [
      {
        "id": 1,
        "name": "一级分类一",
        "parentId": 0
      },
      {
        "id": 2,
        "name": "一级分类二",
        "parentId": 0
      },
      {
        "id": 3,
        "name": "二级分类一",
        "parentId": 1
      }
    ],
    "total": 3,
    "size": 5,
    "current": 1,
    "searchCount": true,
    "pages": 1
  }
}

results matching ""

    No results matching ""