fix():修改s3为阿里云oss

This commit is contained in:
yuj
2025-12-05 17:33:13 +08:00
parent 88e048f4d1
commit b01cee2fa7
7 changed files with 192 additions and 68 deletions

View File

@@ -83,7 +83,8 @@ type OssConfig struct {
AccessKeyID string `mapstructure:"access_key_id"`
AccessKeySecret string `mapstructure:"access_key_secret"`
Bucket string `mapstructure:"bucket"`
AssumeRoleArn string `mapstructure:"assume_role_arn"`
UploadMaxSize int64 `mapstructure:"upload_max_size"` // 上传文件最大大小(字节)
AssumeRoleArn string `mapstructure:"assume_role_arn"` // AWS S3专用,阿里云不需要
PresignUrlExpire time.Duration `mapstructure:"presign_url_expire"`
}