expanded anilist user type

This commit is contained in:
John O'Keefe 2024-07-30 20:35:21 -04:00
parent 8c61c5e96b
commit 54d5932d8a
2 changed files with 14 additions and 2 deletions

View File

@ -10,8 +10,14 @@ type AniListJWT struct {
type AniListUser struct {
Data struct {
Viewer struct {
ID int `json:"id"`
Name string `json:"name"`
ID int `json:"id"`
Name string `json:"name"`
Avatar struct {
Large string `json:"large"`
Medium string `json:"medium"`
} `json:"avatar"`
BannerImage string `json:"bannerImage"`
SiteUrl string `json:"siteUrl"`
} `json:"Viewer"`
} `json:"data"`
}

View File

@ -39,6 +39,12 @@ export interface AniListUser {
"Viewer": {
id: number,
name: string,
avatar: {
large: string,
medium: string,
},
bannerImage: string,
siteUrl: string,
}
}
}