feat: Notification service qo'shildi va RabbitMQ integratsiya qilindi

This commit is contained in:
A'zamov Samandar
2025-04-20 16:15:04 +05:00
commit 937dda4bdd
11 changed files with 312 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package domain
import "github.com/streadway/amqp"
type NotificationConsumerPort interface {
Start()
Handler(amqp.Delivery)
}
type NotifierPort interface {
SendMessage([]string, string)
}
type NotificationMsg struct {
Type string `json:"type"`
Message string `json:"message"`
To []string `json:"to"`
}