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
+5 -1
View File
@@ -26,7 +26,11 @@ jwt:
signingKey: z3d6k8v0n3w7m9sa1fd0u09h
expiredTime: 604800
# 邮件服务
# 文件存储配置
file:
path: /home/ubuntu/crm/source/
# 邮件服务配置
mail:
smtp: smtp.qq.com
secret: dhsepilzlvoaceij
+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"`