service backend
This commit is contained in:
16
api/pkg/messaging/notifications/object/handler/interface.go
Normal file
16
api/pkg/messaging/notifications/object/handler/interface.go
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
Reference in New Issue
Block a user