mirror of
https://github.com/haiwen/seafile-js.git
synced 2025-06-03 01:00:19 +00:00
update repo trash
This commit is contained in:
parent
1aef7949a1
commit
aab1e03050
@ -2544,6 +2544,14 @@ class SeafileAPI {
|
|||||||
return this.req.post(url, params);
|
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) {
|
restoreDirents(repoID, commentID, paths) {
|
||||||
const url = this.server + '/api/v2.1/repos/' + repoID + '/trash/revert-dirents/';
|
const url = this.server + '/api/v2.1/repos/' + repoID + '/trash/revert-dirents/';
|
||||||
let formData = new FormData();
|
let formData = new FormData();
|
||||||
@ -2562,6 +2570,14 @@ class SeafileAPI {
|
|||||||
return this.req.delete(url, {data: params});
|
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) {
|
restoreFolder(repoID, commitID, path) {
|
||||||
const url = this.server + '/api2/repos/' + repoID + '/dir/revert/';
|
const url = this.server + '/api2/repos/' + repoID + '/dir/revert/';
|
||||||
const data = {
|
const data = {
|
||||||
|
Loading…
Reference in New Issue
Block a user