feat: add storages

This commit is contained in:
Rogee
2025-01-14 20:13:25 +08:00
parent 48a0a6c195
commit 307509e787
12 changed files with 393 additions and 3 deletions

View File

@@ -3,3 +3,16 @@ package fields
// swagger:enum UserStatus
// ENUM( Local ,AliOSS, S3, MinIO)
type StorageType int16
type StorageConfig struct {
Path *string `json:"path"`
S3 *StorageS3Config `json:"s3"`
}
type StorageS3Config struct {
Endpoint string `json:"endpoint"`
AccessKeyID string `json:"access_key_id"`
AccessKeySecret string `json:"access_key_secret"`
BucketName string `json:"bucket"`
Path string `json:"path"`
}