aboutsummaryrefslogtreecommitdiff
path: root/user/anime/animelist.structs.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-06-16 22:20:17 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-06-16 22:20:17 +0530
commit05fe09f3ec167417ea94fc04148ac110f18c4ad6 (patch)
tree19d7c2713c8e24772ccbacc1572c354d48707dc9 /user/anime/animelist.structs.go
parent71210ebc8e04d49a6afeeecee842b2e8b53f3c4f (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.go10
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