mirror of
https://github.com/ultrasn0w/huso.git
synced 2025-12-14 05:39:52 +01:00
Init
This commit is contained in:
135
klotz.go
Normal file
135
klotz.go
Normal file
@@ -0,0 +1,135 @@
|
||||
package main
|
||||
|
||||
import "time"
|
||||
|
||||
type SeasonMal struct {
|
||||
Data []struct {
|
||||
Node struct {
|
||||
ID int `json:"id"`
|
||||
Title string `json:"title"`
|
||||
MainPicture struct {
|
||||
Medium string `json:"medium"`
|
||||
Large string `json:"large"`
|
||||
} `json:"main_picture"`
|
||||
} `json:"node"`
|
||||
} `json:"data"`
|
||||
Paging struct {
|
||||
Next string `json:"next"`
|
||||
} `json:"paging"`
|
||||
Season struct {
|
||||
Year int `json:"year"`
|
||||
Season string `json:"season"`
|
||||
} `json:"season"`
|
||||
}
|
||||
|
||||
type SeasonJikan struct {
|
||||
Pagination struct {
|
||||
LastVisiblePage int `json:"last_visible_page"`
|
||||
HasNextPage bool `json:"has_next_page"`
|
||||
CurrentPage int `json:"current_page"`
|
||||
Items struct {
|
||||
Count int `json:"count"`
|
||||
Total int `json:"total"`
|
||||
PerPage int `json:"per_page"`
|
||||
} `json:"items"`
|
||||
} `json:"pagination"`
|
||||
Data []struct {
|
||||
MalID int `json:"mal_id"`
|
||||
URL string `json:"url"`
|
||||
Images struct {
|
||||
Jpg struct {
|
||||
ImageURL string `json:"image_url"`
|
||||
SmallImageURL string `json:"small_image_url"`
|
||||
LargeImageURL string `json:"large_image_url"`
|
||||
} `json:"jpg"`
|
||||
Webp struct {
|
||||
ImageURL string `json:"image_url"`
|
||||
SmallImageURL string `json:"small_image_url"`
|
||||
LargeImageURL string `json:"large_image_url"`
|
||||
} `json:"webp"`
|
||||
} `json:"images"`
|
||||
Trailer struct {
|
||||
YoutubeID string `json:"youtube_id"`
|
||||
URL string `json:"url"`
|
||||
EmbedURL string `json:"embed_url"`
|
||||
Images struct {
|
||||
ImageURL string `json:"image_url"`
|
||||
SmallImageURL string `json:"small_image_url"`
|
||||
MediumImageURL string `json:"medium_image_url"`
|
||||
LargeImageURL string `json:"large_image_url"`
|
||||
MaximumImageURL string `json:"maximum_image_url"`
|
||||
} `json:"images"`
|
||||
} `json:"trailer"`
|
||||
Title string `json:"title"`
|
||||
TitleEnglish string `json:"title_english"`
|
||||
TitleJapanese string `json:"title_japanese"`
|
||||
TitleSynonyms []string `json:"title_synonyms"`
|
||||
Type string `json:"type"`
|
||||
Source string `json:"source"`
|
||||
Episodes int `json:"episodes"`
|
||||
Status string `json:"status"`
|
||||
Airing bool `json:"airing"`
|
||||
Aired struct {
|
||||
From time.Time `json:"from"`
|
||||
To interface{} `json:"to"`
|
||||
Prop struct {
|
||||
From struct {
|
||||
Day int `json:"day"`
|
||||
Month int `json:"month"`
|
||||
Year int `json:"year"`
|
||||
} `json:"from"`
|
||||
To struct {
|
||||
Day interface{} `json:"day"`
|
||||
Month interface{} `json:"month"`
|
||||
Year interface{} `json:"year"`
|
||||
} `json:"to"`
|
||||
} `json:"prop"`
|
||||
String string `json:"string"`
|
||||
} `json:"aired"`
|
||||
Duration string `json:"duration"`
|
||||
Rating string `json:"rating"`
|
||||
Score float64 `json:"score"`
|
||||
ScoredBy int `json:"scored_by"`
|
||||
Rank int `json:"rank"`
|
||||
Popularity int `json:"popularity"`
|
||||
Members int `json:"members"`
|
||||
Favorites int `json:"favorites"`
|
||||
Synopsis string `json:"synopsis"`
|
||||
Background interface{} `json:"background"`
|
||||
Season string `json:"season"`
|
||||
Year int `json:"year"`
|
||||
Broadcast struct {
|
||||
Day string `json:"day"`
|
||||
Time string `json:"time"`
|
||||
Timezone string `json:"timezone"`
|
||||
String string `json:"string"`
|
||||
} `json:"broadcast"`
|
||||
Producers []struct {
|
||||
MalID int `json:"mal_id"`
|
||||
Type string `json:"type"`
|
||||
Name string `json:"name"`
|
||||
URL string `json:"url"`
|
||||
} `json:"producers"`
|
||||
Licensors []interface{} `json:"licensors"`
|
||||
Studios []struct {
|
||||
MalID int `json:"mal_id"`
|
||||
Type string `json:"type"`
|
||||
Name string `json:"name"`
|
||||
URL string `json:"url"`
|
||||
} `json:"studios"`
|
||||
Genres []struct {
|
||||
MalID int `json:"mal_id"`
|
||||
Type string `json:"type"`
|
||||
Name string `json:"name"`
|
||||
URL string `json:"url"`
|
||||
} `json:"genres"`
|
||||
ExplicitGenres []interface{} `json:"explicit_genres"`
|
||||
Themes []struct {
|
||||
MalID int `json:"mal_id"`
|
||||
Type string `json:"type"`
|
||||
Name string `json:"name"`
|
||||
URL string `json:"url"`
|
||||
} `json:"themes"`
|
||||
Demographics []interface{} `json:"demographics"`
|
||||
} `json:"data"`
|
||||
}
|
||||
Reference in New Issue
Block a user