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