mirror of
https://github.com/stashapp/stash.git
synced 2026-05-04 07:29:56 -05:00
a2e477e1a7
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
25 lines
453 B
Go
25 lines
453 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
|
|
models.FileLoader
|
|
}
|
|
|
|
type Service struct {
|
|
File file.Store
|
|
Repository Repository
|
|
}
|