添加AWS S3上传功能

This commit is contained in:
WqyJh
2022-01-05 22:45:02 +08:00
parent 274eb56d05
commit 40d78ab69a
7 changed files with 125 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
package config
type AwsS3 struct {
Bucket string `mapstructure:"bucket" json:"bucket" yaml:"bucket"`
Region string `mapstructure:"region" json:"region" yaml:"region"`
SecretID string `mapstructure:"secret-id" json:"secretID" yaml:"secret-id"`
SecretKey string `mapstructure:"secret-key" json:"secretKey" yaml:"secret-key"`
BaseURL string `mapstructure:"base-url" json:"baseURL" yaml:"base-url"`
PathPrefix string `mapstructure:"path-prefix" json:"pathPrefix" yaml:"path-prefix"`
}