fix: submit verification code
This commit is contained in:
parent
20a05ea195
commit
432343fa6f
|
|
@ -1,11 +1,8 @@
|
||||||
package ping
|
package ping
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"backend/pkg/notification/domain/usecase"
|
|
||||||
"context"
|
|
||||||
"fmt"
|
|
||||||
|
|
||||||
"backend/internal/svc"
|
"backend/internal/svc"
|
||||||
|
"context"
|
||||||
|
|
||||||
"github.com/zeromicro/go-zero/core/logx"
|
"github.com/zeromicro/go-zero/core/logx"
|
||||||
)
|
)
|
||||||
|
|
@ -26,16 +23,5 @@ func NewPingLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PingLogic {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (l *PingLogic) Ping() error {
|
func (l *PingLogic) Ping() error {
|
||||||
|
|
||||||
err := l.svcCtx.DeliveryUC.SendEmail(l.ctx, usecase.MailReq{
|
|
||||||
To: []string{"igs170911@gmail.com"},
|
|
||||||
From: l.svcCtx.Config.SMTPConfig.Sender,
|
|
||||||
SenderName: "t",
|
|
||||||
Subject: "test",
|
|
||||||
Body: "good",
|
|
||||||
})
|
|
||||||
|
|
||||||
fmt.Println(err)
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue