mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-22 11:57:34 +00:00
complete
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user