Notification:getCount
注意:该接口需要登陆后才能调用。
获取未读通知数量。
HTTP 请求
GET /api/notifications/count
参数
参数名 | 参数位置 | 类型 | 默认值 | 说明 |
---|---|---|---|---|
type |
query | string |
通知类型 取值范围包括: |
响应
未读通知数量
示例
{
"code": 0,
"data": {
"notification_count": 12
}
}
参数说明
参数名 | 类型 | 说明 |
---|---|---|
code |
integer |
无任何错误时,状态码为 0 |
data.notification_count |
integer |
未读通知数量 |