1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-23 04:18:21 +00:00

Merge pull request #7470 from haiwen/link-invite-to-join-group-13.0

invite user
This commit is contained in:
Ranjiwei
2025-02-26 13:49:16 +08:00
committed by GitHub
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 }) {