2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-05 06:57:19 +08:00

feat: 规范压缩解压

This commit is contained in:
耗子
2024-10-28 03:21:22 +08:00
parent 899ce1fa18
commit 12ecf0707e
7 changed files with 21 additions and 28 deletions

View File

@@ -45,8 +45,8 @@ export default {
group: string
): Promise<AxiosResponse<any>> => request.post('/file/permission', { path, mode, owner, group }),
// 压缩文件
compress: (paths: string[], file: string): Promise<AxiosResponse<any>> =>
request.post('/file/compress', { paths, file }),
compress: (dir: string, paths: string[], file: string): Promise<AxiosResponse<any>> =>
request.post('/file/compress', { dir, paths, file }),
// 解压文件
unCompress: (file: string, path: string): Promise<AxiosResponse<any>> =>
request.post('/file/unCompress', { file, path }),