This commit is contained in:
Yun
2025-08-30 17:58:23 +08:00
parent 5880a88a88
commit 54b1974509
4 changed files with 41 additions and 11 deletions
+10
View File
@@ -1,5 +1,15 @@
package interfaces
type EmailType string
const (
EmailTypeAliyun EmailType = "aliyun"
EmailTypeAws EmailType = "aws"
EmailTypeMailgun EmailType = "mailgun"
EmailTypeSmtp EmailType = "smtp"
)
type EmialConfigDataMailgun struct {
ApiKey string `json:"api_key"` // mailgun api key
Domain string `json:"domain"` // mailgun domain
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"errors"
)
type EmailType string
type EmailInterface interface {
SetOption(ctx context.Context, opt ...Option) (EmailInterface, error) // 初始化