stash/pkg/scene/service.go
WithoutPants 94d39da706 [Files Refactor] Bug fixes (#2868)
* Return error if multiple rows returned for id
* Add missing LoadFiles calls
* Show id if path is empty
2022-09-06 07:04:52 +00:00

24 lines
419 B
Go

package scene
import (
"context"
"github.com/stashapp/stash/pkg/file"
"github.com/stashapp/stash/pkg/models"
)
type FinderByFile interface {
FindByFileID(ctx context.Context, fileID file.ID) ([]*models.Scene, error)
}
type Repository interface {
FinderByFile
Destroyer
models.VideoFileLoader
}
type Service struct {
File file.Store
Repository Repository
MarkerDestroyer MarkerDestroyer
}