🆕新增了邮件工具

This commit is contained in:
coward
2024-03-22 11:40:34 +08:00
parent 86c76add17
commit 8bcd3266d6
5 changed files with 106 additions and 5 deletions

View File

@@ -3,9 +3,10 @@ package config
var Config *config
type config struct {
Http *http `yaml:"http"`
Database *database `yaml:"database"`
Redis *redis `yaml:"redis"`
File *file `yaml:"file"`
Wireguard wireguard `yaml:"wireguard"`
Http *http `yaml:"http"`
Database *database `yaml:"database"`
Redis *redis `yaml:"redis"`
File *file `yaml:"file"`
Mail *mail `yaml:"mail"`
Wireguard *wireguard `yaml:"wireguard"`
}

9
config/mail.go Normal file
View File

@@ -0,0 +1,9 @@
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"`
}