mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Add tags to studios (#4858)
* Fix makeTagFilter mode * Remove studio_tags filter criterion This is handled by studios_filter. The support for this still needs to be added in the UI, so I have removed the criterion options in the short-term. --------- Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -22,6 +22,7 @@ type StudioFinder interface {
|
||||
// StudioQueryer provides methods to query studios.
|
||||
type StudioQueryer interface {
|
||||
Query(ctx context.Context, studioFilter *StudioFilterType, findFilter *FindFilterType) ([]*Studio, int, error)
|
||||
QueryCount(ctx context.Context, studioFilter *StudioFilterType, findFilter *FindFilterType) (int, error)
|
||||
}
|
||||
|
||||
type StudioAutoTagQueryer interface {
|
||||
@@ -36,6 +37,7 @@ type StudioAutoTagQueryer interface {
|
||||
// StudioCounter provides methods to count studios.
|
||||
type StudioCounter interface {
|
||||
Count(ctx context.Context) (int, error)
|
||||
CountByTagID(ctx context.Context, tagID int) (int, error)
|
||||
}
|
||||
|
||||
// StudioCreator provides methods to create studios.
|
||||
@@ -74,6 +76,7 @@ type StudioReader interface {
|
||||
|
||||
AliasLoader
|
||||
StashIDLoader
|
||||
TagIDLoader
|
||||
|
||||
All(ctx context.Context) ([]*Studio, error)
|
||||
GetImage(ctx context.Context, studioID int) ([]byte, error)
|
||||
|
||||
Reference in New Issue
Block a user