2024-08-08 15:38:37 +08:00
|
|
|
package dto
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
type BackupOperate struct {
|
|
|
|
ID uint `json:"id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Type string `json:"type" validate:"required"`
|
|
|
|
Bucket string `json:"bucket"`
|
|
|
|
AccessKey string `json:"accessKey"`
|
|
|
|
Credential string `json:"credential"`
|
|
|
|
BackupPath string `json:"backupPath"`
|
|
|
|
Vars string `json:"vars" validate:"required"`
|
|
|
|
|
|
|
|
RememberAuth bool `json:"rememberAuth"`
|
|
|
|
}
|
|
|
|
|
2024-08-14 10:15:55 +08:00
|
|
|
type BackupOption struct {
|
|
|
|
ID uint `json:"id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Type string `json:"type"`
|
|
|
|
}
|
|
|
|
|
2024-08-08 15:38:37 +08:00
|
|
|
type BackupInfo struct {
|
|
|
|
ID uint `json:"id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Type string `json:"type"`
|
|
|
|
Bucket string `json:"bucket"`
|
|
|
|
AccessKey string `json:"accessKey"`
|
|
|
|
Credential string `json:"credential"`
|
|
|
|
BackupPath string `json:"backupPath"`
|
|
|
|
Vars string `json:"vars"`
|
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
|
|
|
|
|
RememberAuth bool `json:"rememberAuth"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type OneDriveInfo struct {
|
|
|
|
ClientID string `json:"client_id"`
|
|
|
|
ClientSecret string `json:"client_secret"`
|
|
|
|
RedirectUri string `json:"redirect_uri"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ForBuckets struct {
|
|
|
|
Type string `json:"type" validate:"required"`
|
|
|
|
AccessKey string `json:"accessKey"`
|
|
|
|
Credential string `json:"credential" validate:"required"`
|
|
|
|
Vars string `json:"vars" validate:"required"`
|
|
|
|
}
|