stash/pkg/models/scene_marker.go

25 lines
798 B
Go
Raw Normal View History

2020-09-15 07:28:53 +00:00
package models
type SceneMarkerReader interface {
Find(id int) (*SceneMarker, error)
FindMany(ids []int) ([]*SceneMarker, error)
2020-09-15 07:28:53 +00:00
FindBySceneID(sceneID int) ([]*SceneMarker, error)
CountByTagID(tagID int) (int, error)
GetMarkerStrings(q *string, sort *string) ([]*MarkerStringsResultType, error)
Wall(q *string) ([]*SceneMarker, error)
Query(sceneMarkerFilter *SceneMarkerFilterType, findFilter *FindFilterType) ([]*SceneMarker, int, error)
GetTagIDs(imageID int) ([]int, error)
2020-09-15 07:28:53 +00:00
}
type SceneMarkerWriter interface {
Create(newSceneMarker SceneMarker) (*SceneMarker, error)
Update(updatedSceneMarker SceneMarker) (*SceneMarker, error)
Destroy(id int) error
UpdateTags(markerID int, tagIDs []int) error
2020-09-15 07:28:53 +00:00
}
type SceneMarkerReaderWriter interface {
SceneMarkerReader
SceneMarkerWriter
}