mirror of
https://github.com/stashapp/stash.git
synced 2025-12-23 08:46:03 +01:00
* Fix destroy gallery not destroying file * Re-add minModTime functionality * Deprecate useFileMetadata and stripFileExtension * Optimise files post migration * Decorate moved files. Use first missing file in move * Include path in thumbnail generation error log * Fix stash-box draft submission * Don't destroy files unless deleting * Call handler for files with no associated objects * Fix moved zips causing error on scan
23 lines
434 B
Go
23 lines
434 B
Go
package image
|
|
|
|
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.Image, error)
|
|
FindByZipFileID(ctx context.Context, zipFileID file.ID) ([]*models.Image, error)
|
|
}
|
|
|
|
type Repository interface {
|
|
FinderByFile
|
|
Destroyer
|
|
}
|
|
|
|
type Service struct {
|
|
File file.Store
|
|
Repository Repository
|
|
}
|