Lee-WineList/config/aliyun.go

15 lines
471 B
Go
Raw Normal View History

2023-04-24 17:19:41 +08:00
package config
// 阿里云配置
type aliyunConfig struct {
Oss aliOssConfig `mapstructure:"oss" yaml:"oss"` // oss配置
}
// OSSConfig 阿里云OSS配置
type aliOssConfig struct {
Endpoint string `mapstructure:"endpoint" yaml:"endpoint"`
Bucket string `mapstructure:"bucket" yaml:"bucket"`
AccessKeyId string `mapstructure:"access-key" yaml:"access-key"`
AccessKeySecret string `mapstructure:"access-key-secret" yaml:"access-key-secret"`
}