update repo trash

This commit is contained in:
孙永强 2024-05-29 13:52:16 +08:00
parent 1aef7949a1
commit aab1e03050

View File

@ -2544,6 +2544,14 @@ class SeafileAPI {
return this.req.post(url, params);
}
getRepoFolderTrash2(repoID, path) {
const url = this.server + '/api/v2.1/repos/' + repoID + '/trash2/';
let params = {
path: path
};
return this.req.post(url, params);
}
restoreDirents(repoID, commentID, paths) {
const url = this.server + '/api/v2.1/repos/' + repoID + '/trash/revert-dirents/';
let formData = new FormData();
@ -2562,6 +2570,14 @@ class SeafileAPI {
return this.req.delete(url, {data: params});
}
deleteRepoTrash2(repoID, days) {
const url = this.server + '/api/v2.1/repos/' + repoID + '/trash2/';
const params = {
keep_days: days
};
return this.req.delete(url, {data: params});
}
restoreFolder(repoID, commitID, path) {
const url = this.server + '/api2/repos/' + repoID + '/dir/revert/';
const data = {