更新
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"errors"
|
||||
)
|
||||
|
||||
type EmailType string
|
||||
|
||||
|
||||
type EmailInterface interface {
|
||||
SetOption(ctx context.Context, opt ...Option) (EmailInterface, error) // 初始化
|
||||
|
||||
Reference in New Issue
Block a user