15 lines
471 B
Go
15 lines
471 B
Go
|
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"`
|
||
|
}
|