refactor: move producer type and method out of studio.go

This commit is contained in:
2026-06-23 17:27:40 +02:00
committed by Milas Holsting
parent 6a039dc9ac
commit 3dfbcdb815
3 changed files with 38 additions and 44 deletions

View File

@@ -22,6 +22,29 @@ type StudioAnimeResult struct {
StudioName string
}
type ProducerResponse struct {
Data struct {
MalID int `json:"mal_id"`
Titles []struct {
Type string `json:"type"`
Title string `json:"title"`
} `json:"titles"`
Images struct {
Jpg struct {
ImageURL string `json:"image_url"`
} `json:"jpg"`
} `json:"images"`
Favorites int `json:"favorites"`
Established string `json:"established"`
About string `json:"about"`
Count int `json:"count"`
External []struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"external"`
} `json:"data"`
}
type NamedEntity struct {
MalID int `json:"mal_id"`
Name string `json:"name"`