2022-12-14 07:39:13 +00:00
|
|
|
package response
|
|
|
|
|
2023-03-02 05:54:07 +00:00
|
|
|
import (
|
|
|
|
"github.com/1Panel-dev/1Panel/backend/utils/files"
|
|
|
|
)
|
2022-12-14 07:39:13 +00:00
|
|
|
|
|
|
|
type FileInfo struct {
|
|
|
|
files.FileInfo
|
|
|
|
}
|
|
|
|
|
2023-03-02 05:54:07 +00:00
|
|
|
type UploadInfo struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
Size int `json:"size"`
|
|
|
|
CreatedAt string `json:"createdAt"`
|
|
|
|
}
|
|
|
|
|
2022-12-14 07:39:13 +00:00
|
|
|
type FileTree struct {
|
2024-06-28 06:16:57 +00:00
|
|
|
ID string `json:"id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Path string `json:"path"`
|
|
|
|
IsDir bool `json:"isDir"`
|
|
|
|
Extension string `json:"extension"`
|
|
|
|
Children []FileTree `json:"children"`
|
2022-12-14 07:39:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type DirSizeRes struct {
|
|
|
|
Size float64 `json:"size" validate:"required"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type FileProcessKeys struct {
|
|
|
|
Keys []string `json:"keys"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type FileWgetRes struct {
|
|
|
|
Key string `json:"key"`
|
|
|
|
}
|
2023-11-01 10:27:19 +00:00
|
|
|
|
2023-11-01 10:30:56 +00:00
|
|
|
type FileLineContent struct {
|
2024-08-19 10:04:43 +00:00
|
|
|
Content string `json:"content"`
|
|
|
|
End bool `json:"end"`
|
|
|
|
Path string `json:"path"`
|
|
|
|
Total int `json:"total"`
|
|
|
|
Lines []string `json:"lines"`
|
2023-11-01 10:30:56 +00:00
|
|
|
}
|
|
|
|
|
2023-11-01 10:27:19 +00:00
|
|
|
type FileExist struct {
|
|
|
|
Exist bool `json:"exist"`
|
|
|
|
}
|