feat: Notification service qo'shildi va RabbitMQ integratsiya qilindi
This commit is contained in:
18
internal/domain/notification.go
Normal file
18
internal/domain/notification.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user