Files
notification/internal/domain/notification.go
2025-04-25 10:25:49 +05:00

20 lines
354 B
Go

package domain
type NotificationConsumerPort interface {
Start()
Handler(NotificationMsg)
}
type SMSServicePort interface {
SendSMS(string, string) error
}
type NotifierPort interface {
SendMessage([]string, string)
}
type NotificationMsg struct {
Type string `json:"type"`
Message string `json:"message"`
To []string `json:"to"`
}