feat: 增加文件移动功能

This commit is contained in:
zhengkunwang223
2022-09-07 14:03:24 +08:00
parent 16b9adfefe
commit f4eead9cc2
14 changed files with 201 additions and 6 deletions
+7
View File
@@ -22,6 +22,7 @@ export namespace File {
path: string;
search?: string;
expand: boolean;
dir?: boolean;
}
export interface FileTree {
@@ -75,4 +76,10 @@ export namespace File {
name: string;
url: string;
}
export interface FileMove {
oldPaths: string[];
newPath: string;
type: string;
}
}
+4
View File
@@ -48,3 +48,7 @@ export const RenameRile = (params: File.FileRename) => {
export const DownloadFile = (params: File.FileDownload) => {
return http.post<File.File>('files/download', params);
};
export const MoveFile = (params: File.FileMove) => {
return http.post<File.File>('files/move', params);
};