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