mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-03 09:24:28 +08:00
27 lines
478 B
Go
27 lines
478 B
Go
package response
|
|
|
|
import "github.com/1Panel-dev/1Panel/backend/utils/files"
|
|
|
|
type FileInfo struct {
|
|
files.FileInfo
|
|
}
|
|
|
|
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"`
|
|
}
|