mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Add new endpoints
This commit is contained in:
parent
382d19ee94
commit
08c46e50bb
5 changed files with 423 additions and 0 deletions
43
category.go
Normal file
43
category.go
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
package crunchyroll
|
||||
|
||||
// Category contains all information about a category.
|
||||
type Category struct {
|
||||
Category string `json:"tenant_category"`
|
||||
|
||||
SubCategories []struct {
|
||||
Category string `json:"tenant_category"`
|
||||
ParentCategory string `json:"parent_category"`
|
||||
|
||||
Localization struct {
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
Locale LOCALE `json:"locale"`
|
||||
} `json:"localization"`
|
||||
|
||||
Slug string `json:"slug"`
|
||||
} `json:"sub_categories"`
|
||||
|
||||
Images struct {
|
||||
Background []struct {
|
||||
Width int `json:"width"`
|
||||
Height int `json:"height"`
|
||||
Type string `json:"type"`
|
||||
Source string `json:"source"`
|
||||
} `json:"background"`
|
||||
|
||||
Low []struct {
|
||||
Width int `json:"width"`
|
||||
Height int `json:"height"`
|
||||
Type string `json:"type"`
|
||||
Source string `json:"source"`
|
||||
} `json:"low"`
|
||||
} `json:"images"`
|
||||
|
||||
Localization struct {
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
Locale LOCALE `json:"locale"`
|
||||
} `json:"localization"`
|
||||
|
||||
Slug string `json:"slug"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue