feat: add year field to quick search response
This commit is contained in:
@@ -374,6 +374,7 @@ func (h *AnimeHandler) HandleQuickSearch(c *gin.Context) {
|
|||||||
ID int `json:"id"`
|
ID int `json:"id"`
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
|
Year int `json:"year"`
|
||||||
Image string `json:"image"`
|
Image string `json:"image"`
|
||||||
InWatchlist bool `json:"in_watchlist"`
|
InWatchlist bool `json:"in_watchlist"`
|
||||||
}
|
}
|
||||||
@@ -384,6 +385,7 @@ func (h *AnimeHandler) HandleQuickSearch(c *gin.Context) {
|
|||||||
ID: anime.MalID,
|
ID: anime.MalID,
|
||||||
Title: anime.DisplayTitle(),
|
Title: anime.DisplayTitle(),
|
||||||
Type: anime.Type,
|
Type: anime.Type,
|
||||||
|
Year: anime.Year,
|
||||||
Image: anime.ImageURL(),
|
Image: anime.ImageURL(),
|
||||||
InWatchlist: watchlistMap[anime.MalID],
|
InWatchlist: watchlistMap[anime.MalID],
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user