1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 00:43:53 +00:00

Update notifications.py

This commit is contained in:
孙永强
2024-11-21 10:59:13 +08:00
parent 175803baba
commit 27dcce694b
9 changed files with 228 additions and 18 deletions

View File

@@ -1460,6 +1460,16 @@ class SeafileAPI {
return this.req.get(url, { params: params });
}
listSdocNotifications(page, perPage) {
const url = this.server + '/api/v2.1/sdoc-notifications/';
let params = {
page: page,
per_page: perPage
};
return this.req.get(url, { params: params });
}
updateNotifications() {
const url = this.server + '/api/v2.1/notifications/';
return this.req.put(url);