fixed simkl types
This commit is contained in:
parent
1dcf7ba5bd
commit
77289052e9
@ -28,14 +28,14 @@ type SimklUser struct {
|
||||
|
||||
type SimklWatchList struct {
|
||||
Anime []struct {
|
||||
LastWatchedAt string `json:"last_watched_at" ts_type:"last_watched_at"`
|
||||
Status string `json:"status" ts_type:"status"`
|
||||
UserRating int `json:"user_rating" ts_type:"user_rating"`
|
||||
LastWatched string `json:"last_watched" ts_type:"last_watched"`
|
||||
NextToWatch string `json:"next_to_watch" ts_type:"next_to_watch"`
|
||||
WatchedEpisodesCount int `json:"watched_episodes_count" ts_type:"watched_episodes_count"`
|
||||
TotalEpisodesCount int `json:"total_episodes_count" ts_type:"total_episodes_count"`
|
||||
NotAiredEpisodesCount int `json:"not_aired_episodes_count" ts_type:"not_aired_episodes_count"`
|
||||
LastWatchedAt string `json:"last_watched_at" ts_type:"last_watched_at"`
|
||||
Status string `json:"status" ts_type:"status"`
|
||||
UserRating float64 `json:"user_rating" ts_type:"user_rating"`
|
||||
LastWatched string `json:"last_watched" ts_type:"last_watched"`
|
||||
NextToWatch string `json:"next_to_watch" ts_type:"next_to_watch"`
|
||||
WatchedEpisodesCount int `json:"watched_episodes_count" ts_type:"watched_episodes_count"`
|
||||
TotalEpisodesCount int `json:"total_episodes_count" ts_type:"total_episodes_count"`
|
||||
NotAiredEpisodesCount int `json:"not_aired_episodes_count" ts_type:"not_aired_episodes_count"`
|
||||
Show struct {
|
||||
Title string `json:"title" ts_type:"title"`
|
||||
Poster string `json:"poster" ts_type:"poster"`
|
||||
|
@ -19,41 +19,43 @@ export type SimklUser = {
|
||||
}
|
||||
|
||||
export type SimklWatchList = {
|
||||
anime: [{
|
||||
last_watched_at: string,
|
||||
status: string
|
||||
user_rating: number,
|
||||
last_watched: string,
|
||||
next_to_watch: string,
|
||||
watched_episodes_count: number,
|
||||
total_episodes_count: number,
|
||||
not_aired_episodes_count: number,
|
||||
show: {
|
||||
title: string,
|
||||
poster: string,
|
||||
ids: {
|
||||
simkl: number,
|
||||
slug: string,
|
||||
offjp: string,
|
||||
tw: string,
|
||||
ann: string,
|
||||
mal: string,
|
||||
wikien: string,
|
||||
wikijp: string,
|
||||
allcin: string,
|
||||
imdb: string,
|
||||
offen: string,
|
||||
crunchyroll: string,
|
||||
tvdbslug: string,
|
||||
anilist: string,
|
||||
animeplanet: string,
|
||||
anisearch: string,
|
||||
kitsu: string,
|
||||
livechart: string,
|
||||
traktslug: string,
|
||||
anidb: string,
|
||||
}
|
||||
},
|
||||
anime_type: string
|
||||
}]
|
||||
anime: [SimklAnime]
|
||||
}
|
||||
|
||||
export type SimklAnime = {
|
||||
last_watched_at: string,
|
||||
status: string
|
||||
user_rating: number,
|
||||
last_watched: string,
|
||||
next_to_watch: string,
|
||||
watched_episodes_count: number,
|
||||
total_episodes_count: number,
|
||||
not_aired_episodes_count: number,
|
||||
show: {
|
||||
title: string,
|
||||
poster: string,
|
||||
ids: {
|
||||
simkl: number,
|
||||
slug: string,
|
||||
offjp: string,
|
||||
tw: string,
|
||||
ann: string,
|
||||
mal: string,
|
||||
wikien: string,
|
||||
wikijp: string,
|
||||
allcin: string,
|
||||
imdb: string,
|
||||
offen: string,
|
||||
crunchyroll: string,
|
||||
tvdbslug: string,
|
||||
anilist: string,
|
||||
animeplanet: string,
|
||||
anisearch: string,
|
||||
kitsu: string,
|
||||
livechart: string,
|
||||
traktslug: string,
|
||||
anidb: string,
|
||||
}
|
||||
},
|
||||
anime_type: string
|
||||
}
|
Loading…
Reference in New Issue
Block a user