2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 06:47:20 +08:00

fix: 添加校验

This commit is contained in:
2026-01-24 22:47:23 +08:00
parent cd615046ff
commit 857cff0460
4 changed files with 6 additions and 22 deletions

View File

@@ -4,13 +4,12 @@ import "time"
type BackupStorageInfo struct {
// S3
AccessKey string `json:"access_key"` // 访问密钥
SecretKey string `json:"secret_key"` // 私钥
Style string `json:"style"` // virtual-hosted, path
Region string `json:"region"` // 地区
Endpoint string `json:"endpoint"` // 端点
Scheme string `json:"scheme"` // http, https
Bucket string `json:"bucket"` // 存储桶
AccessKey string `json:"access_key"` // 访问密钥
SecretKey string `json:"secret_key"` // 私钥
Style string `json:"style" validate:"required|in:path,virtual-hosted"` // virtual-hosted, path
Endpoint string `json:"endpoint" validate:"required"` // 端点
Scheme string `json:"scheme" validate:"required|in:http,https"` // http, https
Bucket string `json:"bucket" validate:"required"` // 存储桶
// SFTP / WebDAV
URL string `json:"url"` // 网址