2020-09-15 07:28:53 +00:00
|
|
|
package models
|
|
|
|
|
|
|
|
type SceneMarkerReader interface {
|
2021-01-18 01:23:20 +00:00
|
|
|
Find(id int) (*SceneMarker, error)
|
|
|
|
FindMany(ids []int) ([]*SceneMarker, error)
|
2020-09-15 07:28:53 +00:00
|
|
|
FindBySceneID(sceneID int) ([]*SceneMarker, error)
|
2021-01-18 01:23:20 +00:00
|
|
|
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 {
|
2020-09-20 08:36:02 +00:00
|
|
|
Create(newSceneMarker SceneMarker) (*SceneMarker, error)
|
|
|
|
Update(updatedSceneMarker SceneMarker) (*SceneMarker, error)
|
2021-01-18 01:23:20 +00:00
|
|
|
Destroy(id int) error
|
|
|
|
UpdateTags(markerID int, tagIDs []int) error
|
2020-09-15 07:28:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type SceneMarkerReaderWriter interface {
|
|
|
|
SceneMarkerReader
|
|
|
|
SceneMarkerWriter
|
|
|
|
}
|