add some utils

This commit is contained in:
yanghao05
2023-01-30 16:57:48 +08:00
parent 16f80cc297
commit 27bb527373
10 changed files with 384 additions and 6 deletions

View File

@@ -0,0 +1,29 @@
package config
type Storage struct {
Driver string
AliYunOSS AliYunOSS
AwsS3 AwsS3
}
type AliYunOSS struct {
Bucket string
Region string
Endpoint string
AccessKeyID string
AccessKeySecret string
BaseURL string
Path string
}
type AwsS3 struct {
Bucket string
Region string
Endpoint string
DisableSSL bool
SecretID string
SecretKey string
BaseURL string
Path string
S3ForcePathStyle bool
}