mirror of https://github.com/stashapp/stash.git
16 lines
465 B
Go
16 lines
465 B
Go
package api
|
|
|
|
import (
|
|
"context"
|
|
"github.com/stashapp/stash/models"
|
|
)
|
|
|
|
func (r *queryResolver) FindSceneMarkers(ctx context.Context, scene_marker_filter *models.SceneMarkerFilterType, filter *models.FindFilterType) (models.FindSceneMarkersResultType, error) {
|
|
qb := models.NewSceneMarkerQueryBuilder()
|
|
sceneMarkers, total := qb.Query(scene_marker_filter, filter)
|
|
return models.FindSceneMarkersResultType{
|
|
Count: total,
|
|
SceneMarkers: sceneMarkers,
|
|
}, nil
|
|
}
|