diff --git a/server/config.yaml b/server/config.yaml index 31bced1..9b41d1d 100644 --- a/server/config.yaml +++ b/server/config.yaml @@ -26,7 +26,11 @@ jwt: signingKey: z3d6k8v0n3w7m9sa1fd0u09h expiredTime: 604800 -# 邮件服务 +# 文件存储配置 +file: + path: /home/ubuntu/crm/source/ + +# 邮件服务配置 mail: smtp: smtp.qq.com secret: dhsepilzlvoaceij diff --git a/server/config/config.go b/server/config/config.go index 0a12f5b..f8a2f3e 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -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"`