notifier/internal/models/message.go

20 lines
932 B
Go
Raw Normal View History

2024-03-31 20:04:15 +00:00
package models
2024-04-01 16:04:29 +00:00
import (
"go.mongodb.org/mongo-driver/bson/primitive"
"time"
)
2024-04-01 13:18:16 +00:00
2024-03-31 20:04:15 +00:00
type Message struct {
2024-04-02 14:46:05 +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"` // тип события вызвавшее отправку данных в кафку
SendRegistration bool `bson:"sendRegistration"`
SendNoneCreated bool `bson:"sendNoneCreated"`
SendUnpublished bool `bson:"sendUnpublished"`
SendPaid bool `bson:"sendPaid"`
SendAt time.Time `bson:"sendAt"` // или в unix?
2024-03-31 20:04:15 +00:00
}