aboutsummaryrefslogtreecommitdiff
path: root/user/manga/mangalist.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/manga/mangalist.structs.go
parent71210ebc8e04d49a6afeeecee842b2e8b53f3c4f (diff)
added api error handling to user/anime and user/manga packages
Diffstat (limited to 'user/manga/mangalist.structs.go')
-rw-r--r--user/manga/mangalist.structs.go20
1 files changed, 7 insertions, 13 deletions
diff --git a/user/manga/mangalist.structs.go b/user/manga/mangalist.structs.go
index 0ea7d70..d7e5352 100644
--- a/user/manga/mangalist.structs.go
+++ b/user/manga/mangalist.structs.go
@@ -17,23 +17,18 @@
package manga
import (
- "github.com/MikunoNaka/MAL2Go/util"
"github.com/MikunoNaka/MAL2Go/manga"
)
-type Manga manga.Manga
-
-type MangaListRaw struct {
+type mangaListRaw struct {
Data []struct {
- Manga Manga `json:"node"`
+ Manga manga.Manga `json:"node"`
ListStatus manga.ListStatus `json:"list_status"`
- } `json:"data"`
- Paging util.ListPaging `json:"paging"`
-}
-
-type MangaList struct {
- Mangas []Manga
- Paging util.ListPaging
+ } `json:"data"`
+ Paging struct {
+ NextPage string `json:"next"`
+ PrevPage string `json:"previous"`
+ } `json:"paging"`
}
type UpdateMangaData struct {
@@ -44,7 +39,6 @@ type UpdateMangaData struct {
ChaptersRead int
Priority int
TimesReread int
- // NOTE: idk what RereadValue is
RereadValue int
Tags string
Comments string