aboutsummaryrefslogtreecommitdiff
path: root/manga/manga.structs.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2022-02-28 05:35:39 +0000
committerGitHub <noreply@github.com>2022-02-28 05:35:39 +0000
commit06425ac756f916bca10d0f8797cf575a77dcf69d (patch)
tree7b4df51906c714f83a2bdce710e218a5cbb6672e /manga/manga.structs.go
parentf44303ee9de8da4e330116d2c6e6048d59b52526 (diff)
parent38f7861cc533081aba7458ef52a25acdeddd1f16 (diff)
Merge pull request #7 from MikunoNaka/user-mangalist
Added functionality to update manga lists
Diffstat (limited to 'manga/manga.structs.go')
-rw-r--r--manga/manga.structs.go16
1 files changed, 14 insertions, 2 deletions
diff --git a/manga/manga.structs.go b/manga/manga.structs.go
index b9748c4..e863d00 100644
--- a/manga/manga.structs.go
+++ b/manga/manga.structs.go
@@ -27,7 +27,16 @@ type Author struct {
}
type ListStatus struct {
- util.DefaultListStatus
+ Status string `json:"status"`
+ Score int `json:"score"`
+ StartDate string `json:"start_date"`
+ FinishDate string `json:"finish_date"`
+ Priority int `json:"priority"`
+ Tags string `json:"tags"`
+ Comments string `json:"comments"`
+ UpdatedAt string `json:"updated_at"`
+
+ // thsese fields are exclusive to manga
VolumesRead int `json:"num_volumes_read"`
ChaptersRead int `json:"num_chapters_read"`
IsRereading bool `json:"is_rereading"`
@@ -53,7 +62,10 @@ type Manga struct {
UpdatedAt string `json:"updated_at"`
MediaType string `json:"media_type"`
Status string `json:"status"`
- MyListStattus ListStatus `json:"my_list_status"`
+ /* MyListStatus refers to the authenticated user's info
+ * while ListStatus can be used for other users */
+ MyListStatus ListStatus `json:"my_list_status"`
+ ListStatus ListStatus `json:"list_status"`
NumVolumes int `json:"num_volumes"`
NumChapters int `json:"num_chapters"`
Authors []Author `json:"authors"`