2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 19:37:18 +08:00
Files
panel/internal/http/request/backup_storage.go

17 lines
686 B
Go

package request
import "github.com/acepanel/panel/pkg/types"
type BackupStorageCreate struct {
Type string `form:"type" json:"type" validate:"required|in:s3,sftp,webdav"`
Name string `form:"name" json:"name" validate:"required"`
Info types.BackupStorageInfo `form:"info" json:"info"`
}
type BackupStorageUpdate struct {
ID uint `form:"id" json:"id" validate:"required|exists:backup_storages,id"`
Type string `form:"type" json:"type" validate:"required|in:s3,sftp,webdav"`
Name string `form:"name" json:"name" validate:"required"`
Info types.BackupStorageInfo `form:"info" json:"info"`
}