feat: file storage config
This commit is contained in:
@@ -6,6 +6,7 @@ type Config struct {
|
||||
Mysql Mysql `mapstructure:"mysql"`
|
||||
Redis Redis `mapstructure:"redis"`
|
||||
Jwt Jwt `mapstructure:"jwt"`
|
||||
File File `mapstructure:"file"`
|
||||
Mail Mail `mapstructure:"mail"`
|
||||
Alipay Alipay `mapstructure:"alipay"`
|
||||
}
|
||||
@@ -42,6 +43,11 @@ type Jwt struct {
|
||||
ExpiredTime int `mapstructure:"expiredTime"`
|
||||
}
|
||||
|
||||
// 文件存储配置
|
||||
type File struct {
|
||||
Path string `mapstructure:"path"`
|
||||
}
|
||||
|
||||
// 邮件服务配置
|
||||
type Mail struct {
|
||||
Smtp string `mapstructure:"smtp"`
|
||||
|
||||
Reference in New Issue
Block a user