mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-07 01:41:39 +00:00
update export file access (#6112)
* update export file access * optimize * update * update * optimeze code * optimize * Update utils.py * Update utils.py * optimize code * update * update * optimize code --------- Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com> Co-authored-by: r350178982 <32759763+r350178982@users.noreply.github.com>
This commit is contained in:
@@ -66,6 +66,21 @@ class SystemAdminAPI {
|
||||
return this.req.get(url, {params: params});
|
||||
}
|
||||
|
||||
sysAdminExportLogsExcel(start, end, logType) {
|
||||
const url = this.server + '/api/v2.1/admin/logs/export-excel/';
|
||||
const params = {
|
||||
start: start,
|
||||
end: end,
|
||||
logType: logType
|
||||
};
|
||||
return this.req.get(url, { params: params });
|
||||
}
|
||||
|
||||
queryAsyncOperationExportExcel(task_id) {
|
||||
const url = this.server + '/api/v2.1/query-export-status/?task_id=' + task_id;
|
||||
return this.req.get(url);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
let systemAdminAPI = new SystemAdminAPI();
|
||||
|
Reference in New Issue
Block a user