17 lines
343 B
Go
17 lines
343 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/v2/bson"
|
|
)
|
|
|
|
type ObjectUpdateHandler = func(
|
|
ctx context.Context,
|
|
objectType mservice.Type,
|
|
objectRef, actorAccountRef bson.ObjectID,
|
|
action nm.NotificationAction,
|
|
) error
|