refactor: 机器文件操作优化

This commit is contained in:
meilin.huang
2023-07-05 00:26:00 +08:00
parent 3266039aaf
commit f4ac6d8360
12 changed files with 164 additions and 50 deletions

View File

@@ -24,6 +24,8 @@ export const machineApi = {
// 获取配置文件列表
files: Api.newGet("/machines/{id}/files"),
lsFile: Api.newGet("/machines/{machineId}/files/{fileId}/read-dir"),
dirSize: Api.newGet("/machines/{machineId}/files/{fileId}/dir-size"),
fileStat: Api.newGet("/machines/{machineId}/files/{fileId}/file-stat"),
rmFile: Api.newDelete("/machines/{machineId}/files/{fileId}/remove"),
uploadFile: Api.newPost("/machines/{machineId}/files/{fileId}/upload?token={token}"),
fileContent: Api.newGet("/machines/{machineId}/files/{fileId}/read"),