feat: add storages
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user