refactor: move anime handler from subdirectory
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
package handler
|
package anime
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
@@ -39,14 +39,6 @@ type cachedWeekSchedule struct {
|
|||||||
value animeschedule.WeekSchedule
|
value animeschedule.WeekSchedule
|
||||||
}
|
}
|
||||||
|
|
||||||
func wrapAnimes(in []jikan.Anime) []domain.Anime {
|
|
||||||
out := make([]domain.Anime, 0, len(in))
|
|
||||||
for _, a := range in {
|
|
||||||
out = append(out, domain.Anime{Anime: a})
|
|
||||||
}
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
func NewAnimeHandler(svc Service, watchlistSvc domain.WatchlistService) *AnimeHandler {
|
func NewAnimeHandler(svc Service, watchlistSvc domain.WatchlistService) *AnimeHandler {
|
||||||
return &AnimeHandler{
|
return &AnimeHandler{
|
||||||
svc: svc,
|
svc: svc,
|
||||||
Reference in New Issue
Block a user