迁移公告,邮件

This commit is contained in:
2026-08-13 22:04:27 +08:00
parent 21c264fcd7
commit 9044bafdff
18 changed files with 946 additions and 28 deletions
+20
View File
@@ -0,0 +1,20 @@
package service
import (
"context"
"kra/internal/biz"
)
type EmailService struct{ uc *biz.EmailUsecase }
func NewEmailService(uc *biz.EmailUsecase) *EmailService { return &EmailService{uc: uc} }
func (s *EmailService) Test(ctx context.Context) error { return s.uc.Test(ctx) }
func (s *EmailService) Send(ctx context.Context, to, subject, body string) error {
return s.uc.Send(ctx, to, subject, body)
}
func (s *EmailService) Alert(ctx context.Context, subject, body string) error {
return s.uc.Alert(ctx, subject, body)
}