2019-02-09 12:30:49 +00:00
|
|
|
package api
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2019-02-10 02:53:08 +00:00
|
|
|
"github.com/stashapp/stash/models"
|
2019-02-09 12:30:49 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
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{
|
2019-02-14 22:53:32 +00:00
|
|
|
Count: total,
|
2019-02-09 12:30:49 +00:00
|
|
|
SceneMarkers: sceneMarkers,
|
|
|
|
}, nil
|
|
|
|
}
|