mirror of
https://github.com/acepanel/panel.git
synced 2026-02-05 02:07:18 +08:00
50 lines
1.1 KiB
Go
50 lines
1.1 KiB
Go
package request
|
|
|
|
type FilePath struct {
|
|
Path string `json:"path" form:"path"`
|
|
}
|
|
|
|
type FileCreate struct {
|
|
Dir bool `json:"dir" form:"dir"`
|
|
Path string `json:"path" form:"path"`
|
|
}
|
|
|
|
type FileSave struct {
|
|
Path string `form:"path" json:"path"`
|
|
Content string `form:"content" json:"content"`
|
|
}
|
|
|
|
type FileMove struct {
|
|
Source string `form:"source" json:"source"`
|
|
Target string `form:"target" json:"target"`
|
|
Force bool `form:"force" json:"force"`
|
|
}
|
|
|
|
type FileCopy struct {
|
|
Source string `form:"source" json:"source"`
|
|
Target string `form:"target" json:"target"`
|
|
Force bool `form:"force" json:"force"`
|
|
}
|
|
|
|
type FilePermission struct {
|
|
Path string `form:"path" json:"path"`
|
|
Mode string `form:"mode" json:"mode"`
|
|
Owner string `form:"owner" json:"owner"`
|
|
Group string `form:"group" json:"group"`
|
|
}
|
|
|
|
type FileCompress struct {
|
|
Paths []string `form:"paths" json:"paths"`
|
|
File string `form:"file" json:"file"`
|
|
}
|
|
|
|
type FileUnCompress struct {
|
|
File string `form:"file" json:"file"`
|
|
Path string `form:"path" json:"path"`
|
|
}
|
|
|
|
type FileSearch struct {
|
|
Path string `form:"path" json:"path"`
|
|
KeyWord string `form:"keyword" json:"keyword"`
|
|
}
|