接口名称:导航栏列表 接口地址:域名/index.php?m=api&c=nav&a=getNavList&current_page=1&page_size=1 请求方式:GET 数据类型:JSON 响应类型:JSON 请求参数: | 参数名称 | 是否必须 | 类型 | 默认值 | 描述 | | --- | --- | --- | --- | --- | | page_size | 是 | int | | 每页数量 | | current_page | 是 | int | | 当前页码 | 响应数据: | 参数名称 | 是否必须 | 类型 | 默认值 | 描述 | | --- | --- | --- | --- | --- | | message | 是 | string | | 返回信息 | | code | 是 | int | | 状态码 | | data | 是 | array | | 返回插入成功的id或false | | --pagination | 是 | array | | 分页数据 | | ---- total | 是 | int | | 总数量 | | ---- page_count | 是 | int | | 分页数量 | | ---- page_size | 是 | int | | 每页数量 | | ---- current_page | 是 | int | | 当前页码 | | --list | 是 | array | | 查询数据列表 | 成功响应示列: { "code": 1001, "message": "响应成功", "data": { "pagination": { "total": 3, "page_count": 1, "current_page": 1, "page_size": 10 }, "list": [ { "id": "1", "name": "测试", "path": "www.baidu.com", "image_url": null, "sort": "1", "status": "2" }, { "id": "4", "name": "测试", "path": "www.baidu.com", "image_url": null, "sort": "1", "status": "1" }, { "id": "6", "name": "测试", "path": "www.baidu.com", "image_url": "www.image.com", "sort": "1", "status": "1" } ] } } 失败响应示列: ~~~ { "code": 2001, "message": "响应错误", "data": { "pagination": { "total": 0, "page_count": 0, "current_page": 1, "page_size": 10 }, "list": [] } } ~~~