-
Notifications
You must be signed in to change notification settings - Fork 78
notification
Malcolm edited this page Jul 20, 2016
·
4 revisions
主要举出用户的通知接口。
获取用户全部通知列表,并将当前页中未读的通知设置为已读。
GET /user/notifications/type/:type
Response
{
"res": true,
"data": [
{
"id": 1607,
"type": "PROJECT_VERSION",
"scope": "repo",
"loggerId": 23,
"operation": "项目版本从 {'versionFrom':'0.0.2'} 升级到 {'versionTo':'0.0.3'}",
"createdAt": "2016-07-14T12:16:00.000Z",
"updatedAt": "2016-07-14T12:16:00.000Z",
"operator": 22,
"userLog": {
"unread": true,
"userId": 22,
"logId": 1607
}
}
],
"page": {
"currentPage": 1,
"pageSize": 10,
"totalCount": 11
}
}
查看某个通知的详情,这里指图标 icon 这样的,无法记录在日志里的数据,在 hover 或点击的时候展开。
GET /user/notifications/:nId
Response
{
"res": true,
"data": []
}