mirror of https://github.com/1Panel-dev/1Panel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.5 KiB
55 lines
1.5 KiB
package dto
|
|
|
|
import "time"
|
|
|
|
type BackupOperate struct {
|
|
ID uint `json:"id"`
|
|
Type string `json:"type" validate:"required"`
|
|
Bucket string `json:"bucket"`
|
|
Credential string `json:"credential"`
|
|
Vars string `json:"vars" validate:"required"`
|
|
}
|
|
|
|
type BackupInfo struct {
|
|
ID uint `json:"id"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
Type string `json:"type"`
|
|
Bucket string `json:"bucket"`
|
|
Vars string `json:"vars"`
|
|
}
|
|
|
|
type BackupSearch struct {
|
|
PageInfo
|
|
Type string `json:"type" validate:"required,oneof=website mysql"`
|
|
Name string `json:"name" validate:"required"`
|
|
DetailName string `json:"detailName"`
|
|
}
|
|
|
|
type RecordSearch struct {
|
|
PageInfo
|
|
Type string `json:"type" validate:"required"`
|
|
Name string `json:"name" validate:"required"`
|
|
DetailName string `json:"detailName"`
|
|
}
|
|
|
|
type BackupRecords struct {
|
|
ID uint `json:"id"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
Source string `json:"source"`
|
|
BackupType string `json:"backupType"`
|
|
FileDir string `json:"fileDir"`
|
|
FileName string `json:"fileName"`
|
|
}
|
|
|
|
type DownloadRecord struct {
|
|
Source string `json:"source" validate:"required,oneof=OSS S3 SFTP MINIO LOCAL"`
|
|
FileDir string `json:"fileDir" validate:"required"`
|
|
FileName string `json:"fileName" validate:"required"`
|
|
}
|
|
|
|
type ForBuckets struct {
|
|
Type string `json:"type" validate:"required"`
|
|
Credential string `json:"credential" validate:"required"`
|
|
Vars string `json:"vars" validate:"required"`
|
|
}
|