feat: Notification service qo'shildi va RabbitMQ integratsiya qilindi
This commit is contained in:
16
internal/notifier/email.go
Normal file
16
internal/notifier/email.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package notifier
|
||||
|
||||
import (
|
||||
"github.com/JscorpTech/notification/internal/domain"
|
||||
"github.com/k0kubun/pp/v3"
|
||||
)
|
||||
|
||||
type emailNotifier struct{}
|
||||
|
||||
func NewEmailNotifier() domain.NotifierPort {
|
||||
return &emailNotifier{}
|
||||
}
|
||||
|
||||
func (n *emailNotifier) SendMessage(to []string, body string) {
|
||||
pp.Print(to, body)
|
||||
}
|
||||
Reference in New Issue
Block a user