NotificationApi.getCount
注意:该接口需要登陆后才能调用。
获取未读通知数量。
方法定义
NotificationApi.getCount(param: GetCountParams): Promise<NotificationCountResponse>
参数
GetCountParams NotificationApi.ts:40
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
type |
否 | string |
通知类型 取值范围包括: |
响应
NotificationCountResponse models.ts:667
参数名 | 类型 | 说明 |
---|---|---|
code |
number |
无任何错误时,状态码为 0 |
data |
NotificationCount |
NotificationCount models.ts:660
参数名 | 类型 | 说明 |
---|---|---|
notification_count |
number |
未读通知数量 |