From 0f321b7c4691923ead42a9b020da98dce1196d07 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 24 Feb 2022 00:43:23 +0530 Subject: modified the endpoints to meet requirements for updating manga --- user/manga/mangalist.structs.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'user/manga/mangalist.structs.go') diff --git a/user/manga/mangalist.structs.go b/user/manga/mangalist.structs.go index 860163b..0ea7d70 100644 --- a/user/manga/mangalist.structs.go +++ b/user/manga/mangalist.structs.go @@ -21,14 +21,21 @@ import ( "github.com/MikunoNaka/MAL2Go/manga" ) +type Manga manga.Manga + type MangaListRaw struct { Data []struct { - Manga manga.Manga `json:"node"` + 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 +} + type UpdateMangaData struct { Status string IsRereading bool -- cgit v1.2.3