From df0aa5249077ecc67c4f178e1ef1cfb11b47bfc4 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Fri, 15 May 2026 19:36:04 +0200 Subject: [PATCH] feat: add domain type aliases and service interface methods --- internal/domain/anime.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/domain/anime.go b/internal/domain/anime.go index 81ac284..eeb1092 100644 --- a/internal/domain/anime.go +++ b/internal/domain/anime.go @@ -11,6 +11,10 @@ type TopAnimeResult = jikan.TopAnimeResult type Genre = jikan.Genre type Character = jikan.CharacterEntry type Recommendation = jikan.RecommendationEntry +type StaffEntry = jikan.StaffEntry +type Statistics = jikan.Statistics +type ThemesData = jikan.ThemesData +type ReviewEntry = jikan.ReviewEntry type AnimeService interface { GetCatalogSection(ctx context.Context, userID string, section string) (map[string]any, error) @@ -24,6 +28,10 @@ type AnimeService interface { GetEpisodes(ctx context.Context, id int, page int) (jikan.EpisodesResponse, error) GetAllEpisodes(ctx context.Context, id int) ([]EpisodeData, error) GetRandomAnime(ctx context.Context) (Anime, error) + GetStaff(ctx context.Context, id int) ([]StaffEntry, error) + GetStatistics(ctx context.Context, id int) (Statistics, error) + GetThemes(ctx context.Context, id int) (ThemesData, error) + GetReviews(ctx context.Context, id int, page int) ([]ReviewEntry, bool, error) } type AnimeRepository interface {