diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-06-16 22:20:17 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-06-16 22:20:17 +0530 |
commit | 05fe09f3ec167417ea94fc04148ac110f18c4ad6 (patch) | |
tree | 19d7c2713c8e24772ccbacc1572c354d48707dc9 /user/anime/animelist.structs.go | |
parent | 71210ebc8e04d49a6afeeecee842b2e8b53f3c4f (diff) |
added api error handling to user/anime and user/manga packages
Diffstat (limited to 'user/anime/animelist.structs.go')
-rw-r--r-- | user/anime/animelist.structs.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/user/anime/animelist.structs.go b/user/anime/animelist.structs.go index 80eb01a..c727d97 100644 --- a/user/anime/animelist.structs.go +++ b/user/anime/animelist.structs.go @@ -20,12 +20,15 @@ import ( "github.com/MikunoNaka/MAL2Go/anime" ) -type AnimeListRaw struct { +type animeListRaw struct { Data []struct { Anime anime.Anime `json:"node"` ListStatus anime.ListStatus `json:"list_status"` - } `json:"data"` - Paging anime.ListPaging `json:"paging"` + } `json:"data"` + Paging struct { + NextPage string `json:"next"` + PrevPage string `json:"previous"` + } `json:"paging"` } type UpdateAnimeData struct { @@ -35,7 +38,6 @@ type UpdateAnimeData struct { EpWatched int Priority int TimesRewatched int - // NOTE: idk what RewatchValue is RewatchValue int Tags string Comments string |