service backend
This commit is contained in:
15
api/pkg/db/role/role.go
Normal file
15
api/pkg/db/role/role.go
Normal file
@@ -0,0 +1,15 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user