🎨将邮箱smtp配置改为系统当中配置

This commit is contained in:
coward
2024-10-15 17:16:22 +08:00
parent fa04d9c83a
commit 331849522f
5 changed files with 34 additions and 19 deletions

View File

@@ -7,6 +7,5 @@ type config struct {
Database *database `yaml:"database"`
Cache *cache `yaml:"redis"`
File *file `yaml:"file"`
Mail *mail `yaml:"email"`
Wireguard *wireguard `yaml:"wireguard"`
}

View File

@@ -1,9 +0,0 @@
package config
type mail struct {
Host string `json:"host" yaml:"host"`
Port int `json:"port" yaml:"port"`
User string `json:"user" yaml:"user"`
Password string `json:"password" yaml:"password"`
SkipTls bool `json:"skipTls" yaml:"skipTls"`
}