mirror of
https://github.com/ultrasn0w/huso.git
synced 2025-12-14 05:39:52 +01:00
Use own struct
This commit is contained in:
74
klotz.go
74
klotz.go
@@ -4,48 +4,46 @@ import "time"
|
||||
|
||||
type Anime struct {
|
||||
Anime int64 `json:"anime"`
|
||||
Data AnimeDetail `json:"data"`
|
||||
Users []WatchUser `json:"users"`
|
||||
Data AnimeDetail `json:"data"`
|
||||
}
|
||||
|
||||
type AnimeDetail struct {
|
||||
Title string `json:"title"`
|
||||
TitleEn string `json:"title_en"`
|
||||
TitleJp string `json:"title_jp"`
|
||||
Image struct {
|
||||
ImageURL string `json:"medium"`
|
||||
LargeURL string `json:"large"`
|
||||
ThumbURL string `json:"thumb"`
|
||||
} `json:"image"`
|
||||
Type string `json:"type"`
|
||||
Status string `json:"status"`
|
||||
Episodes int `json:"episodes"`
|
||||
Synopsis string `json:"synopsis"`
|
||||
Genres []struct {
|
||||
ID int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
} `json:"genres"`
|
||||
StartDate time.Time `json:"start_date"`
|
||||
EndDate time.Time `json:"end_date"`
|
||||
Season struct {
|
||||
Year int `json:"year"`
|
||||
Season string `json:"season"`
|
||||
} `json:"season"`
|
||||
Score float64 `json:"score"`
|
||||
ScoredBy int `json:"scored_by"`
|
||||
Rank int `json:"rank"`
|
||||
Popularity int `json:"popularity"`
|
||||
Members int `json:"members"`
|
||||
Source string `json:"source"`
|
||||
Broadcast struct {
|
||||
DayOfTheWeek string `json:"day_of_the_week"`
|
||||
StartTime string `json:"start_time"`
|
||||
} `json:"broadcast"`
|
||||
Studios []struct {
|
||||
ID int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
} `json:"studios"`
|
||||
TrailerURL string `json:"trailer_url"`
|
||||
Title string `json:"title"`
|
||||
TitleEn string `json:"title_en"`
|
||||
TitleJp string `json:"title_jp"`
|
||||
ImageMediumURL string `json:"image_medium"`
|
||||
ImageLargeURL string `json:"image_large"`
|
||||
ImageThumbURL string `json:"image_thumb"`
|
||||
Type string `json:"type"`
|
||||
Status string `json:"status"`
|
||||
Episodes int `json:"episodes"`
|
||||
Synopsis string `json:"synopsis"`
|
||||
Genres []AnimeGenre `json:"genres"`
|
||||
StartDate time.Time `json:"start_date"`
|
||||
EndDate time.Time `json:"end_date"`
|
||||
Year int `json:"year"`
|
||||
Season string `json:"season"`
|
||||
Score float64 `json:"score"`
|
||||
ScoredBy int `json:"scored_by"`
|
||||
Rank int `json:"rank"`
|
||||
Popularity int `json:"popularity"`
|
||||
Members int `json:"members"`
|
||||
Source string `json:"source"`
|
||||
DayOfTheWeek string `json:"day_of_the_week"`
|
||||
StartTime string `json:"start_time"`
|
||||
Studios []AnimeStudio `json:"studios"`
|
||||
TrailerURL string `json:"trailer_url"`
|
||||
}
|
||||
|
||||
type AnimeGenre struct {
|
||||
ID int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
type AnimeStudio struct {
|
||||
ID int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
type WatchUser struct {
|
||||
|
||||
Reference in New Issue
Block a user