地址:
/MessageBox/List
方法:
GET
是否需要登录:
是
参数说明:
参数名称 | 是否必选 | 参数类型 | 参数描述 |
---|---|---|---|
currentPageNumber | 否 | Integer | 分页列表的当前页数default:1) |
pageSize | 否 | Integer | 当前页记录的条数(default:10) |
type | 否 | Integer | 消息的类型:{0:收件,1:发件,2:未读},默认(所有类型) |
status | 否 | Integer | 消息的状态:{0:已读,1:未读,2:接收者已删除,3:发送者已删除,4:已删除},默认(所有类型) |
请求示例:
curl -d 'id=1' '/MessageBox/List'
返回值说明:
参数名称 | 是否必选 | 参数类型 | 参数描述 |
---|---|---|---|
messageList | 是 | List<MessageBoxDto> | 短消息列表 |
返回示例:
{"code":200,"message":"请求成功","data":[{"message":{"content":"消息8","sender":2,"receiver":1,"status":2,"title":"问候29","id":29,"createTime":"2016-06-25 20:56:50","updateTime":"2016-06-27 15:40:51"},"sender":{"username":"456@qq.com","nickname":"456@qq.com"},"receiver":{"username":"123@qq.com","nickname":"123@qq.com"}},{"message":{"content":"消息10","sender":2,"receiver":1,"status":2,"title":"问候31","id":31,"createTime":"2016-06-25 20:56:50","updateTime":"2016-06-27 15:40:47"},"sender":{"username":"456@qq.com","nickname":"456@qq.com"},"receiver":{"username":"123@qq.com","nickname":"123@qq.com"}},{"message":{"content":"消息2","sender":2,"receiver":1,"status":2,"title":"问候23","id":23,"createTime":"2016-06-25 20:56:49","updateTime":"2016-06-27 15:41:00"},"sender":{"username":"456@qq.com","nickname":"456@qq.com"},"receiver":{"username":"123@qq.com","nickname":"123@qq.com"}},{"message":{"content":"消息4","sender":2,"receiver":1,"status":2,"title":"问候25","id":25,"createTime":"2016-06-25 20:56:49","updateTime":"2016-06-27 23:43:10"},"sender":{"username":"456@qq.com","nickname":"456@qq.com"},"receiver":{"username":"123@qq.com","nickname":"123@qq.com"}},{"message":{"content":"消息6","sender":2,"receiver":1,"status":0,"title":"问候27","id":27,"createTime":"2016-06-25 20:56:49","updateTime":"2016-06-27 15:25:07"},"sender":{"username":"456@qq.com","nickname":"456@qq.com"},"receiver":{"username":"123@qq.com","nickname":"123@qq.com"}}]}