diff options
author | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2022-02-24 00:43:23 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2022-02-24 00:43:23 +0530 |
commit | 0f321b7c4691923ead42a9b020da98dce1196d07 (patch) | |
tree | b53014eebd02c6573c5f82a1fa1c2fe699ba9b66 /user/manga/mangalist.structs.go | |
parent | b6235cb6331bac5e1a2d791c78578ebfb298d2eb (diff) |
modified the endpoints to meet requirements for updating manga
Diffstat (limited to 'user/manga/mangalist.structs.go')
-rw-r--r-- | user/manga/mangalist.structs.go | 9 |
1 files changed, 8 insertions, 1 deletions
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 |