package role

import (
	"context"

	"github.com/tech/sendico/pkg/db/template"
	"github.com/tech/sendico/pkg/model"
	"go.mongodb.org/mongo-driver/bson/primitive"
)

type DB interface {
	template.DB[*model.RoleDescription]
	Roles(ctx context.Context, refs []primitive.ObjectID) ([]model.RoleDescription, error)
	List(ctx context.Context, organizationRef primitive.ObjectID, cursor *model.ViewCursor) ([]model.RoleDescription, error)
}
