From 0edca3b2faf545abc065de55a94b87a10ac3f405 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 24 Feb 2022 00:39:10 +0530 Subject: renamed MyListStatus to ListStatus --- manga/manga.structs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'manga/manga.structs.go') diff --git a/manga/manga.structs.go b/manga/manga.structs.go index b9748c4..7c33c2b 100644 --- a/manga/manga.structs.go +++ b/manga/manga.structs.go @@ -53,7 +53,7 @@ type Manga struct { UpdatedAt string `json:"updated_at"` MediaType string `json:"media_type"` Status string `json:"status"` - MyListStattus ListStatus `json:"my_list_status"` + ListStatus ListStatus `json:"my_list_status"` NumVolumes int `json:"num_volumes"` NumChapters int `json:"num_chapters"` Authors []Author `json:"authors"` -- cgit v1.2.3 From 314d9bf6cad4bebec431a217c23016680c56179b Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 24 Feb 2022 21:40:43 +0530 Subject: moved DefaultListStatus back to each package seperately --- manga/manga.structs.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'manga/manga.structs.go') diff --git a/manga/manga.structs.go b/manga/manga.structs.go index 7c33c2b..2fb5b29 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"` -- cgit v1.2.3 From 017df270608e286c8ce85683629d5c2dcf400988 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 24 Feb 2022 22:17:51 +0530 Subject: fixed mutliple bugs in GetMangaList --- manga/manga.structs.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'manga/manga.structs.go') diff --git a/manga/manga.structs.go b/manga/manga.structs.go index 2fb5b29..e863d00 100644 --- a/manga/manga.structs.go +++ b/manga/manga.structs.go @@ -62,7 +62,10 @@ type Manga struct { UpdatedAt string `json:"updated_at"` MediaType string `json:"media_type"` Status string `json:"status"` - ListStatus 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"` -- cgit v1.2.3