service backend
This commit is contained in:
12
api/pkg/db/indexable/indexable.go
Normal file
12
api/pkg/db/indexable/indexable.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package indexable
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/tech/sendico/pkg/db/repository/builder"
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
)
|
||||
|
||||
type DB interface {
|
||||
Reorder(ctx context.Context, objectRef primitive.ObjectID, newIndex int, filter builder.Query) error
|
||||
}
|
||||
Reference in New Issue
Block a user