Notification:deleteAll
注意:该接口需要登陆后才能调用。
只要没有错误异常,无论是否有通知被删除,该接口都会返回成功。
HTTP 请求
DELETE /api/notifications
参数
参数名 | 参数位置 | 类型 | 默认值 | 说明 |
---|---|---|---|---|
type |
query | string |
通知类型 取值范围包括: |
响应
空数据,通过状态码区分成功还是失败
示例
{
"code": 0,
"data": null
}
参数说明
参数名 | 类型 | 说明 |
---|---|---|
code |
integer |
无任何错误时,状态码为 0 |
data |
object |
该字段为 |