feat: file storage config

This commit is contained in:
zchengo
2022-12-27 19:22:38 +08:00
parent 2235516232
commit fde5d9d659
2 changed files with 11 additions and 1 deletions
+6
View File
@@ -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"`