created simkl user and watch types
This commit is contained in:
parent
54d5932d8a
commit
2f272fe7af
@ -7,10 +7,62 @@ type SimklJWT struct {
|
||||
}
|
||||
|
||||
type SimklUser struct {
|
||||
Data struct {
|
||||
Viewer struct {
|
||||
ID int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
} `json:"Viewer"`
|
||||
} `json:"data"`
|
||||
User struct {
|
||||
Name string `json:"name" ts_type:"name"`
|
||||
JoinedAt string `json:"joined_at" ts_type:"joined_at"`
|
||||
Gender string `json:"gender" ts_type:"gender"`
|
||||
Avatar string `json:"avatar" ts_type:"avatar"`
|
||||
Bio string `json:"bio" ts_type:"bio"`
|
||||
Loc string `json:"loc" ts_type:"loc"`
|
||||
Age string `json:"age" ts_type:"age"`
|
||||
} `json:"user" ts_type:"user"`
|
||||
Account struct {
|
||||
Id int `json:"id" ts_type:"id"`
|
||||
Timezone string `json:"timezone" ts_type:"timezone"`
|
||||
Type string `json:"type" ts_type:"type"`
|
||||
} `json:"account" ts_type:"account"`
|
||||
Connections struct {
|
||||
Facebook bool `json:"facebook" ts_type:"facebook"`
|
||||
} `json:"connections" ts_type:"connections"`
|
||||
}
|
||||
|
||||
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"`
|
||||
Show struct {
|
||||
Title string `json:"title" ts_type:"title"`
|
||||
Poster string `json:"poster" ts_type:"poster"`
|
||||
Ids struct {
|
||||
Simkl int `json:"simkl" ts_type:"simkl"`
|
||||
Slug string `json:"slug" ts_type:"slug"`
|
||||
OffJp string `json:"offjp" ts_type:"offjp"`
|
||||
TW string `json:"tw" ts_type:"tw"`
|
||||
ANN string `json:"ann" ts_type:"ann"`
|
||||
Mal string `json:"mal" ts_type:"mal"`
|
||||
Wikien string `json:"wikien" ts_type:"wikien"`
|
||||
WikiJp string `json:"wikijp" ts_type:"wikijp"`
|
||||
AllCin string `json:"allcin" ts_type:"allcin"`
|
||||
IMDB string `json:"imdb" ts_type:"imdb"`
|
||||
TMDB string `json:"tmdb" ts_type:"tmdb"`
|
||||
Offen string `json:"offen" ts_type:"offen"`
|
||||
Crunchyroll string `json:"crunchyroll" ts_type:"crunchyroll"`
|
||||
TVDBSlug string `json:"tvdbslug" ts_type:"tvdbslug"`
|
||||
AniList string `json:"anilist" ts_type:"anilist"`
|
||||
AnimePlanet string `json:"animeplanet" ts_type:"animeplanet"`
|
||||
AniSearch string `json:"anisearch" ts_type:"anisearch"`
|
||||
Kitsu string `json:"kitsu" ts_type:"kitsu"`
|
||||
LiveChart string `json:"livechart" ts_type:"livechart"`
|
||||
TraktSlug string `json:"traktslug" ts_type:"traktslug"`
|
||||
AniDB string `json:"anidb" ts_type:"anidb"`
|
||||
} `json:"ids" ts_type:"ids"`
|
||||
} `json:"show" ts_type:"show"`
|
||||
AnimeType string `json:"anime_type" ts_type:"anime_type"`
|
||||
} `json:"anime" ts_type:"anime"`
|
||||
}
|
||||
|
@ -0,0 +1,59 @@
|
||||
export type SimklUser = {
|
||||
user: {
|
||||
name: string,
|
||||
joined_at: string,
|
||||
gender: string,
|
||||
avatar: string,
|
||||
bio: string,
|
||||
loc: string,
|
||||
age: string,
|
||||
},
|
||||
account: {
|
||||
id: number,
|
||||
timezone: string,
|
||||
type: string,
|
||||
},
|
||||
connections: {
|
||||
facebook: boolean
|
||||
}
|
||||
}
|
||||
|
||||
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
|
||||
}]
|
||||
}
|
Loading…
Reference in New Issue
Block a user