-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
557 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.