notifier/internal/models/message.go

13 lines
620 B
Go
Raw Normal View History

2024-03-31 20:04:15 +00:00
package models
2024-04-01 13:18:16 +00:00
import "go.mongodb.org/mongo-driver/bson/primitive"
2024-03-31 20:04:15 +00:00
type Message struct {
2024-04-01 13:18:16 +00:00
ID primitive.ObjectID `bson:"_id"`
AccountID string `bson:"accountID"` // id аккаунта который что то сделал
Email string `bson:"email"` // его mail
ServiceKey string `bson:"serviceKey"` // сервис с которого пришло сообщение
EventType string `bson:"eventType"` // тип события вызвавшее отправку данных в кафку
Send bool `bson:"send"`
2024-03-31 20:04:15 +00:00
}