v0.0.301 pagination (page+limit) support in wmo
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 2m11s
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 2m11s
This commit is contained in:
11
pagination/filter.go
Normal file
11
pagination/filter.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package pagination
|
||||
|
||||
import (
|
||||
"go.mongodb.org/mongo-driver/mongo"
|
||||
ct "gogs.mikescher.com/BlackForestBytes/goext/cursortoken"
|
||||
)
|
||||
|
||||
type Filter interface {
|
||||
FilterQuery() mongo.Pipeline
|
||||
Pagination() (string, ct.SortDirection)
|
||||
}
|
Reference in New Issue
Block a user