## 实例 接口名称:分类列表 接口地址:域名/index.php?m=api&c=message&a=getMessagelist 请求方式:GET 数据类型:JSON 响应类型:JSON 响应数据: | 参数名称 | 是否必须 | 类型 | 默认值 | 描述 | | --- | --- | --- | --- | --- | | uid | 是 | int | | 根据用户ID获取对应消息 | | page_size | 否 | int | 10 | 每页显示的条数,不传递默认为:10 | | current_page | 否 | int | 1 | 当前页码,不传递默认为1 | | is_read | 否 | int(0,1) | | 1代表可读,0代表未读,不传递获取所有 | 成功响应数据: ~~~ { "code": 1001, "message": "响应成功", "data": { "pagination": { "total": 1, "page_count": 1, "current_page": 1, "page_size": 10 }, "list": [ { "id": "1", "uid": "1", "username": "1", "puid": "1", "posts_id": "1", "posts_title": "1", "is_read": "1" } ] } } ~~~ 失败响应数据(不存在时): ~~~ { "code": 2001, "message": "响应错误", "data": { "pagination": { "total": 0, "page_count": 0, "current_page": 1, "page_size": 10 }, "list": [] } } ~~~