Files
2026-01-31 00:26:42 +01:00

17 lines
557 B
Go

package notifications
import (
messaging "github.com/tech/sendico/pkg/messaging/envelope"
an "github.com/tech/sendico/pkg/messaging/internal/notifications/account"
nm "github.com/tech/sendico/pkg/model/notification"
"go.mongodb.org/mongo-driver/v2/bson"
)
func Account(sender string, accountRef bson.ObjectID, action nm.NotificationAction) messaging.Envelope {
return an.NewAccountImp(sender, accountRef, action)
}
func AccountCreated(sender string, accountRef bson.ObjectID) messaging.Envelope {
return Account(sender, accountRef, nm.NACreated)
}