## 示例 接口名称:最新提问 接口地址:域名/index.php?m=api&c=user&a=getQuestions 请求方式:GET 数据类型:JSON 响应类型:JSON 请求参数: | 参数名称 | 是否必须 | 类型 | 默认值 | 描述 | | --- | --- | --- | --- | --- | | uid | 是 | int | | 用户id | | 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": { "list": [ { "id": "1", "cid": "1", "uid": "1", "title": "layui怎么样啊?", "reply_count": "5", "visits_count": "10", "text": "啊啊啊啊啊", "status": "1", "thumb_cnt": "20", "create_time": "1507348220" }, { "id": "2", "cid": "1", "uid": "1", "title": "layui怎么样啊?", "reply_count": "5", "visits_count": "10", "text": "啊啊啊啊啊", "status": "1", "thumb_cnt": "20", "create_time": "1507348220" }, { "id": "3", "cid": "1", "uid": "1", "title": "layui怎么样啊?", "reply_count": "5", "visits_count": "10", "text": "啊啊啊啊啊", "status": "1", "thumb_cnt": "20", "create_time": "1507348220" }, { "id": "4", "cid": "1", "uid": "1", "title": "layui怎么样啊?", "reply_count": "5", "visits_count": "10", "text": "啊啊啊啊啊", "status": "1", "thumb_cnt": "20", "create_time": "1507348220" }, { "id": "5", "cid": "1", "uid": "1", "title": "layui怎么样啊?", "reply_count": "5", "visits_count": "10", "text": "啊啊啊啊啊", "status": "1", "thumb_cnt": "20", "create_time": "1507348220" }, { "id": "6", "cid": "1", "uid": "1", "title": "layui怎么样啊?", "reply_count": "5", "visits_count": "10", "text": "啊啊啊啊啊", "status": "1", "thumb_cnt": "20", "create_time": "1507348220" }, { "id": "7", "cid": "1", "uid": "1", "title": "layui怎么样啊?", "reply_count": "5", "visits_count": "10", "text": "啊啊啊啊啊", "status": "1", "thumb_cnt": "20", "create_time": "1507348220" }, { "id": "8", "cid": "1", "uid": "1", "title": "layui怎么样啊?", "reply_count": "5", "visits_count": "10", "text": "啊啊啊啊啊", "status": "1", "thumb_cnt": "20", "create_time": "1507348220" }, { "id": "9", "cid": "1", "uid": "1", "title": "layui怎么样啊?", "reply_count": "5", "visits_count": "10", "text": "啊啊啊啊啊", "status": "1", "thumb_cnt": "20", "create_time": "1507348220" }, { "id": "10", "cid": "1", "uid": "1", "title": "layui怎么样啊?", "reply_count": "5", "visits_count": "10", "text": "啊啊啊啊啊", "status": "1", "thumb_cnt": "20", "create_time": "1507348220" } ], "pagination": { "total": 17, "page_count": 2, "current_page": "1", "page_size": "10" } } } ~~~ 失败响应示列: ~~~ { "code": 2001, "message": "响应错误", "data": { "list": 0, "pagination": { "total": "0", "page_count": 0, "current_page": "1", "page_size": "4" } } } ~~~