1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-22 11:57:34 +00:00
This commit is contained in:
孙永强
2024-11-22 11:18:42 +08:00
parent 0f77313761
commit 631320c889
6 changed files with 348 additions and 76 deletions

View File

@@ -1451,6 +1451,15 @@ class SeafileAPI {
}
// ---- Notification API
listAllNotifications(page, perPage) {
const url = this.server + '/api/v2.1/all-notifications/';
let params = {
page: page,
per_page: perPage
};
return this.req.get(url, { params: params });
}
listNotifications(page, perPage) {
const url = this.server + '/api/v2.1/notifications/';
let params = {
@@ -1485,6 +1494,11 @@ class SeafileAPI {
return this.req.delete(url);
}
deleteSdocNotifications() {
const url = this.server + '/api/v2.1/sdoc-notifications/';
return this.req.delete(url);
}
getUnseenNotificationCount() {
const url = this.server + '/api/v2.1/notifications/';
return this.req.get(url);