mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 19:53:21 +02:00
feat: WIP auth mailing implementation
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package useCases
|
||||
|
||||
import (
|
||||
"GohCMS2/adapters/secondary/gateways"
|
||||
)
|
||||
|
||||
type SendMailUseCase struct {
|
||||
mailRepository gateways.MailRepository
|
||||
}
|
||||
|
||||
func NewSendMailUseCase() *SendMailUseCase {
|
||||
return &SendMailUseCase{}
|
||||
}
|
||||
|
||||
func (g *SendMailUseCase) SendMail(receiverAddress string, templateName string, data interface{}) error {
|
||||
return g.mailRepository.Send(receiverAddress, templateName, data)
|
||||
}
|
||||
Reference in New Issue
Block a user