2023-04-24 17:19:41 +08:00
|
|
|
package config
|
|
|
|
|
|
|
|
// 阿里云配置
|
|
|
|
type aliyunConfig struct {
|
2023-04-27 15:56:12 +08:00
|
|
|
Sms aliSmsConfig `mapstructure:"sms" yaml:"sms"` // 短信配置
|
2023-04-24 17:19:41 +08:00
|
|
|
Oss aliOssConfig `mapstructure:"oss" yaml:"oss"` // oss配置
|
|
|
|
}
|
|
|
|
|
2023-04-27 15:56:12 +08:00
|
|
|
// SmsConfig 阿里云短信配置
|
|
|
|
type aliSmsConfig struct {
|
|
|
|
AccessKeyId string `mapstructure:"access-key" yaml:"access-key"`
|
|
|
|
AccessKeySecret string `mapstructure:"access-key-secret" yaml:"access-key-secret"`
|
|
|
|
}
|
|
|
|
|
2023-04-24 17:19:41 +08:00
|
|
|
// 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"`
|
|
|
|
}
|