Files
sendico/api/pkg/db/role/role.go
2026-01-31 00:26:42 +01:00

16 lines
416 B
Go

package role
import (
"context"
"github.com/tech/sendico/pkg/db/template"
"github.com/tech/sendico/pkg/model"
"go.mongodb.org/mongo-driver/v2/bson"
)
type DB interface {
template.DB[*model.RoleDescription]
Roles(ctx context.Context, refs []bson.ObjectID) ([]model.RoleDescription, error)
List(ctx context.Context, organizationRef bson.ObjectID, cursor *model.ViewCursor) ([]model.RoleDescription, error)
}