1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-23 12:27:48 +00:00

invite user

This commit is contained in:
孙永强
2025-02-17 15:27:29 +08:00
parent 175803baba
commit f00b81f8d8
12 changed files with 382 additions and 9 deletions

View File

@@ -303,6 +303,22 @@ class SeafileAPI {
return this.req.delete(url, { data: params });
}
deleteGroupInviteLinks(groupID, token) {
const url = this.server + '/api/v2.1/groups/' + groupID + '/invite-links/' + token + '/';
return this.req.delete(url);
}
addGroupInviteLinks(groupID) {
const url = this.server + '/api/v2.1/groups/' + groupID + '/invite-links/';
let formData = new FormData();
return this._sendPostRequest(url, formData);
}
getGroupInviteLinks(groupID) {
const url = this.server + '/api/v2.1/groups/' + groupID + '/invite-links/';
return this.req.get(url);
}
// ---- share operation
listShareLinks({ repoID, path, page, perPage }) {