refactor: 代码优化与数据库表列显示配置优化

This commit is contained in:
meilin.huang
2024-05-09 21:29:34 +08:00
parent 1d0e91f1af
commit 4afeac5fdd
42 changed files with 509 additions and 381 deletions

View File

@@ -1,6 +1,8 @@
package form
import "mayfly-go/internal/machine/application"
import (
"mayfly-go/internal/machine/application/dto"
)
type MachineFileForm struct {
Id uint64 `json:"id"`
@@ -17,32 +19,32 @@ type MachineFileUpdateForm struct {
}
type CreateFileForm struct {
*application.MachineFileOpParam
*dto.MachineFileOp
Type string `json:"type"`
}
type WriteFileContentForm struct {
*application.MachineFileOpParam
*dto.MachineFileOp
Content string `json:"content" binding:"required"`
}
type RemoveFileForm struct {
*application.MachineFileOpParam
*dto.MachineFileOp
Paths []string `json:"paths" binding:"required"`
}
type CopyFileForm struct {
*application.MachineFileOpParam
*dto.MachineFileOp
Paths []string `json:"paths" binding:"required"`
ToPath string `json:"toPath" binding:"required"`
}
type RenameForm struct {
*application.MachineFileOpParam
*dto.MachineFileOp
Newname string `json:"newname" binding:"required"`
}