refactor: extract anime feature into its domain slice
This commit is contained in:
@@ -2,6 +2,16 @@ package jikan
|
||||
|
||||
import "fmt"
|
||||
|
||||
type SearchResult struct {
|
||||
Animes []Anime
|
||||
HasNextPage bool
|
||||
}
|
||||
|
||||
type TopAnimeResult struct {
|
||||
Animes []Anime
|
||||
HasNextPage bool
|
||||
}
|
||||
|
||||
// NamedEntity represents genres, studios, producers, etc.
|
||||
type NamedEntity struct {
|
||||
MalID int `json:"mal_id"`
|
||||
@@ -145,13 +155,3 @@ func (a Anime) DisplayTitle() string {
|
||||
}
|
||||
return a.Title
|
||||
}
|
||||
|
||||
type SearchResult struct {
|
||||
Animes []Anime
|
||||
HasNextPage bool
|
||||
}
|
||||
|
||||
type TopAnimeResult struct {
|
||||
Animes []Anime
|
||||
HasNextPage bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user