mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 14:57:16 +08:00
23 lines
821 B
Go
23 lines
821 B
Go
package request
|
|
|
|
type BackupList struct {
|
|
Type string `json:"type" form:"type" validate:"required|in:path,website,mysql,postgres,redis,panel"`
|
|
}
|
|
|
|
type BackupCreate struct {
|
|
Type string `json:"type" form:"type" validate:"required|in:website,mysql,postgres,redis,panel"`
|
|
Target string `json:"target" form:"target" validate:"required"`
|
|
Path string `json:"path" form:"path"`
|
|
}
|
|
|
|
type BackupFile struct {
|
|
Type string `json:"type" form:"type" validate:"required|in:website,mysql,postgres,redis,panel"`
|
|
File string `json:"file" form:"file" validate:"required"`
|
|
}
|
|
|
|
type BackupRestore struct {
|
|
Type string `json:"type" form:"type" validate:"required|in:website,mysql,postgres,redis,panel"`
|
|
File string `json:"file" form:"file" validate:"required"`
|
|
Target string `json:"target" form:"target" validate:"required"`
|
|
}
|