1Panel/backend/app/dto/response/file.go

35 lines
612 B
Go
Raw Normal View History

2022-12-14 15:39:13 +08:00
package response
2023-03-02 13:54:07 +08:00
import (
"github.com/1Panel-dev/1Panel/backend/utils/files"
)
2022-12-14 15:39:13 +08:00
type FileInfo struct {
files.FileInfo
}
2023-03-02 13:54:07 +08:00
type UploadInfo struct {
Name string `json:"name"`
Size int `json:"size"`
CreatedAt string `json:"createdAt"`
}
2022-12-14 15:39:13 +08:00
type FileTree struct {
ID string `json:"id"`
Name string `json:"name"`
Path string `json:"path"`
Children []FileTree `json:"children"`
}
type DirSizeRes struct {
Size float64 `json:"size" validate:"required"`
}
type FileProcessKeys struct {
Keys []string `json:"keys"`
}
type FileWgetRes struct {
Key string `json:"key"`
}