1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 01:12:03 +00:00

Share to user support select department (#7327)

* select department user when share repo to user

* update

* update

* 01 fix code warnings

* 02 change dialog style

* 03 manage group members support select department user

---------

Co-authored-by: Michael An <2331806369@qq.com>
This commit is contained in:
lian
2025-01-13 18:18:58 +08:00
committed by GitHub
parent dd3003a693
commit 20c81de6cf
17 changed files with 1241 additions and 19 deletions

View File

@@ -94,6 +94,16 @@ class SeafileAPI {
return this.req.get(url);
}
listAddressBookDepartments() {
const url = this.server + '/api/v2.1/address-book/departments/';
return this.req.get(url);
}
listAddressBookDepartmentMembers(department_id) {
const url = this.server + '/api/v2.1/address-book/departments/' + department_id + '/members/';
return this.req.get(url);
}
listGroups(withRepos = false) {
let options = { with_repos: withRepos ? 1 : 0 };
const url = this.server + '/api/v2.1/groups/';