mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-11 03:40:24 +08:00
refactor: 机器文件操作优化
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user