mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Minor refactor (#3924)
* Move SceneFilenameParser to scene package * Move Timestamp marshalling to internal/api, use gqlgen Int64 parser
This commit is contained in:
30
pkg/models/filename_parser.go
Normal file
30
pkg/models/filename_parser.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package models
|
||||
|
||||
type SceneParserInput struct {
|
||||
IgnoreWords []string `json:"ignoreWords"`
|
||||
WhitespaceCharacters *string `json:"whitespaceCharacters"`
|
||||
CapitalizeTitle *bool `json:"capitalizeTitle"`
|
||||
IgnoreOrganized *bool `json:"ignoreOrganized"`
|
||||
}
|
||||
|
||||
type SceneParserResult struct {
|
||||
Scene *Scene `json:"scene"`
|
||||
Title *string `json:"title"`
|
||||
Code *string `json:"code"`
|
||||
Details *string `json:"details"`
|
||||
Director *string `json:"director"`
|
||||
URL *string `json:"url"`
|
||||
Date *string `json:"date"`
|
||||
Rating *int `json:"rating"`
|
||||
Rating100 *int `json:"rating100"`
|
||||
StudioID *string `json:"studio_id"`
|
||||
GalleryIds []string `json:"gallery_ids"`
|
||||
PerformerIds []string `json:"performer_ids"`
|
||||
Movies []*SceneMovieID `json:"movies"`
|
||||
TagIds []string `json:"tag_ids"`
|
||||
}
|
||||
|
||||
type SceneMovieID struct {
|
||||
MovieID string `json:"movie_id"`
|
||||
SceneIndex *string `json:"scene_index"`
|
||||
}
|
||||
Reference in New Issue
Block a user