Showing
1 changed file
with
49 additions
and
1 deletions
| @@ -213,4 +213,52 @@ | @@ -213,4 +213,52 @@ | ||
| 213 | "alias": "rose" | 213 | "alias": "rose" |
| 214 | } | 214 | } |
| 215 | ] | 215 | ] |
| 216 | -``` | 216 | +``` |
| 217 | + | ||
| 218 | +---------------------------- | ||
| 219 | + | ||
| 220 | +####获取通知接口 | ||
| 221 | + | ||
| 222 | +接口地址:/notification/list | ||
| 223 | + | ||
| 224 | +请求方式:GET | ||
| 225 | + | ||
| 226 | +参数: | ||
| 227 | + | ||
| 228 | +|参数 |是否必须 |说明 | | ||
| 229 | +|---------|----------|---------| | ||
| 230 | +|readed |否 |(true或false)| | ||
| 231 | +|lastDate |否 |时间戳 | | ||
| 232 | + | ||
| 233 | +返回值: | ||
| 234 | + | ||
| 235 | +若不写参数,则返回当前用户所收到的所有未读通知。若写参数,则根据参数过滤结果并将过滤后的结果暴露给调用者。 | ||
| 236 | + | ||
| 237 | +```json | ||
| 238 | +[ | ||
| 239 | +{ | ||
| 240 | +"id": "4028804749b2270e0149b22dddd60000", | ||
| 241 | +"source": { | ||
| 242 | +"id": 3145, | ||
| 243 | +"username": "123@q.com", | ||
| 244 | +"realName": "Ji", | ||
| 245 | +"figureUrl": null, | ||
| 246 | +"type": "STUDENT" | ||
| 247 | +}, | ||
| 248 | +"target": { | ||
| 249 | +"id": 3144, | ||
| 250 | +"username": "19911218@qq.com", | ||
| 251 | +"realName": null, | ||
| 252 | +"figureUrl": null, | ||
| 253 | +"type": "STUDENT" | ||
| 254 | +}, | ||
| 255 | +"type": "USER_RELATIONSHIP_APPLY或USER_RELATIONSHIP_DENY或USER_RELATIONSHIP_PASS或VERIFY_PASS或VERIFY_DENY", | ||
| 256 | +"body":通过 | ||
| 257 | +"readed": false, | ||
| 258 | +"createAt": "2014-11-15T06:39:51.000+0000", | ||
| 259 | +"updateAt": "2014-11-15T06:39:51.000+0000", | ||
| 260 | +"version": 0 | ||
| 261 | +} | ||
| 262 | +] | ||
| 263 | +``` | ||
| 264 | + |
-
Please register or login to post a comment