16 lines
416 B
Go
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)
|
|
}
|