1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-20 00:39:17 +08:00
1Panel/backend/app/dto/file.go

28 lines
413 B
Go
Raw Normal View History

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 {
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
}