25 lines
572 B
Go
25 lines
572 B
Go
package fields
|
|
|
|
// swagger:enum UserStatus
|
|
// ENUM( Local, S3, MinIO)
|
|
type StorageType int16
|
|
|
|
type StorageConfig struct {
|
|
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"`
|
|
BucketName string `json:"bucket"`
|
|
Path string `json:"path"`
|
|
}
|