mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 13:47:15 +08:00
feat: 数据备份前端
This commit is contained in:
22
internal/http/request/backup.go
Normal file
22
internal/http/request/backup.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package request
|
||||
|
||||
type BackupList struct {
|
||||
Type string `json:"type" form:"type" validate:"required,oneof=path website mysql postgres redis panel"`
|
||||
}
|
||||
|
||||
type BackupCreate struct {
|
||||
Type string `json:"type" form:"type" validate:"required,oneof=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,oneof=website mysql postgres redis panel"`
|
||||
File string `json:"file" form:"file" validate:"required"`
|
||||
}
|
||||
|
||||
type BackupRestore struct {
|
||||
Type string `json:"type" form:"type" validate:"required,oneof=website mysql postgres redis panel"`
|
||||
File string `json:"file" form:"file" validate:"required"`
|
||||
Target string `json:"target" form:"target" validate:"required"`
|
||||
}
|
||||
@@ -14,11 +14,6 @@ type FileSave struct {
|
||||
Content string `form:"content" json:"content"`
|
||||
}
|
||||
|
||||
type FileUpload struct {
|
||||
Path string `json:"path" form:"path"`
|
||||
File []byte `json:"file" form:"file"`
|
||||
}
|
||||
|
||||
type FileMove struct {
|
||||
Source string `form:"source" json:"source"`
|
||||
Target string `form:"target" json:"target"`
|
||||
|
||||
Reference in New Issue
Block a user