2022-08-24 11:10:50 +08:00
|
|
|
package dto
|
|
|
|
|
2022-08-25 17:54:52 +08:00
|
|
|
import (
|
|
|
|
"github.com/1Panel-dev/1Panel/utils/files"
|
|
|
|
)
|
2022-08-24 11:10:50 +08:00
|
|
|
|
|
|
|
type FileOption struct {
|
|
|
|
files.FileOption
|
|
|
|
}
|
|
|
|
|
|
|
|
type FileInfo struct {
|
|
|
|
files.FileInfo
|
|
|
|
}
|
2022-08-24 17:34:21 +08:00
|
|
|
|
|
|
|
type FileTree struct {
|
2022-08-24 17:58:58 +08:00
|
|
|
ID string `json:"id"`
|
2022-08-24 17:34:21 +08:00
|
|
|
Name string `json:"name"`
|
|
|
|
Path string `json:"path"`
|
|
|
|
Children []FileTree `json:"children"`
|
|
|
|
}
|
2022-08-25 17:54:52 +08:00
|
|
|
|
|
|
|
type FileCreate struct {
|
|
|
|
Path string
|
|
|
|
Content string
|
|
|
|
IsDir bool
|
|
|
|
Mode int64
|
|
|
|
}
|
2022-08-25 18:48:03 +08:00
|
|
|
|
|
|
|
type FileDelete struct {
|
|
|
|
Path string
|
|
|
|
IsDir bool
|
|
|
|
}
|
2022-08-30 17:59:59 +08:00
|
|
|
|
|
|
|
type FileCompress struct {
|
|
|
|
Files []string
|
|
|
|
Dst string
|
|
|
|
Type string
|
|
|
|
Name string
|
|
|
|
Replace bool
|
|
|
|
}
|