mymessages - TimYi/FengHuang GitHub Wiki

请求URL

http://101.200.229.135:8080/api/user/messages?token=fa3f9e6f-2cbe-424a-a2ec-e804960f4aa1

请求方式

GET  

请求参数

token:用户凭据
page:当前页码
size:每页数据量

返回参数

id:id
title:留言标题
content:消息内容
user:用户信息
readed:是否已读
createTime:创建时间
sender:系统管理员,暂时是写死的,因为没有其它需求

返回示例

{
"result": {
    "totalCount": 1,
    "totalPages": 1,
    "page": 1,
    "size": 8,
    "result": [
        {
            "id": "404040e64dd668df014dd669007f0000",
            "content": "您有一条消息",
            "user": {
                "id": "404040e64d89ca84014d89cb492d0000",
                "username": "18612444098",
                "verified": false,
                "cnname": null,
                "realName": null,
                "ename": null,
                "sex": null,
                "mobile": null,
                "intro": null,
                "email": null,
                "qqnum": null,
                "qqid": null,
                "weixinnum": null,
                "weixinid": null,
                "birthDay": null,
                "bloodType": null,
                "constellation": null,
                "avatar": null,
                "trade": null,
                "address": null,
                "expVal": null,
                "integra": null,
                "regTime": null,
                "regIp": null,
                "loginTime": null,
                "loginip": null,
                "weiboid": null,
                "infoComplete": false
            },
            "readed": false
        }
    ]
},
"status": "OK"
}