mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Separate graphql API from rest of the system (#2503)
* Move graphql generated files to api * Refactor identify options * Remove models.StashBoxes * Move ScraperSource to scraper package * Rename field strategy enums * Rename identify.TaskOptions to Options
This commit is contained in:
@@ -1,5 +1,33 @@
|
||||
package models
|
||||
|
||||
type StudioFilterType struct {
|
||||
And *StudioFilterType `json:"AND"`
|
||||
Or *StudioFilterType `json:"OR"`
|
||||
Not *StudioFilterType `json:"NOT"`
|
||||
Name *StringCriterionInput `json:"name"`
|
||||
Details *StringCriterionInput `json:"details"`
|
||||
// Filter to only include studios with this parent studio
|
||||
Parents *MultiCriterionInput `json:"parents"`
|
||||
// Filter by StashID
|
||||
StashID *StringCriterionInput `json:"stash_id"`
|
||||
// Filter to only include studios missing this property
|
||||
IsMissing *string `json:"is_missing"`
|
||||
// Filter by rating
|
||||
Rating *IntCriterionInput `json:"rating"`
|
||||
// Filter by scene count
|
||||
SceneCount *IntCriterionInput `json:"scene_count"`
|
||||
// Filter by image count
|
||||
ImageCount *IntCriterionInput `json:"image_count"`
|
||||
// Filter by gallery count
|
||||
GalleryCount *IntCriterionInput `json:"gallery_count"`
|
||||
// Filter by url
|
||||
URL *StringCriterionInput `json:"url"`
|
||||
// Filter by studio aliases
|
||||
Aliases *StringCriterionInput `json:"aliases"`
|
||||
// Filter by autotag ignore value
|
||||
IgnoreAutoTag *bool `json:"ignore_auto_tag"`
|
||||
}
|
||||
|
||||
type StudioReader interface {
|
||||
Find(id int) (*Studio, error)
|
||||
FindMany(ids []int) ([]*Studio, error)
|
||||
|
||||
Reference in New Issue
Block a user