17 lines
355 B
Go
17 lines
355 B
Go
package notifications
|
|
|
|
import (
|
|
"context"
|
|
|
|
nm "github.com/tech/sendico/pkg/model/notification"
|
|
"github.com/tech/sendico/pkg/mservice"
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
)
|
|
|
|
type ObjectUpdateHandler = func(
|
|
ctx context.Context,
|
|
objectType mservice.Type,
|
|
objectRef, actorAccountRef primitive.ObjectID,
|
|
action nm.NotificationAction,
|
|
) error
|