1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-07 01:41:39 +00:00

update transfer repo (#6965)

* update

* optimize code

* optimize

* update sql

* test

* update

* optimize

* update UI

* change style

---------

Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com>
Co-authored-by: Michael An <2331806369@qq.com>
This commit is contained in:
awu0403
2024-11-04 09:46:03 +08:00
committed by GitHub
parent c002458985
commit c3173a66e8
20 changed files with 313 additions and 345 deletions

View File

@@ -221,10 +221,11 @@ class SystemAdminAPI {
return this.req.delete(url);
}
sysAdminTransferRepo(repoID, userEmail) {
sysAdminTransferRepo(repoID, userEmail, reshare) {
const url = this.server + '/api/v2.1/admin/libraries/' + repoID + '/';
const params = {
owner: userEmail
owner: userEmail,
reshare: reshare,
};
return this.req.put(url, params);
}
@@ -725,6 +726,7 @@ class SystemAdminAPI {
return this.req.get(url, { params: params });
}
sysAdminListAdminLoginLogs(page, perPage) {
const url = this.server + '/api/v2.1/admin/admin-login-logs/';
let params = {