feat: upload

This commit is contained in:
Rogee
2025-01-15 10:43:16 +08:00
parent 9bfdf0e0ea
commit ab827715fb
16 changed files with 378 additions and 161 deletions

View File

@@ -1,15 +1,21 @@
package fields
// swagger:enum UserStatus
// ENUM( Local ,AliOSS, S3, MinIO)
// ENUM( Local, S3, MinIO)
type StorageType int16
type StorageConfig struct {
Path *string `json:"path"`
S3 *StorageS3Config `json:"s3"`
Local *LocalStorage `json:"local"`
S3 *StorageS3Config `json:"s3"`
}
type LocalStorage struct {
Path string `json:"path"`
Host string `json:"host"`
}
type StorageS3Config struct {
Host string `json:"host"`
Endpoint string `json:"endpoint"`
AccessKeyID string `json:"access_key_id"`
AccessKeySecret string `json:"access_key_secret"`