fix: remaining domain interface and repository return types

This commit is contained in:
2026-05-13 11:20:53 +02:00
parent 345853406c
commit 458ee52604
2 changed files with 5 additions and 5 deletions

View File

@@ -9,18 +9,18 @@ import (
type Anime = jikan.Anime type Anime = jikan.Anime
type TopAnimeResult = jikan.TopAnimeResult type TopAnimeResult = jikan.TopAnimeResult
type Genre = jikan.Genre type Genre = jikan.Genre
type Character = jikan.Character type Character = jikan.CharacterEntry
type Recommendation = jikan.Recommendation type Recommendation = jikan.RecommendationEntry
type AnimeService interface { type AnimeService interface {
GetCatalogSection(ctx context.Context, userID string, section string) (map[string]any, error) GetCatalogSection(ctx context.Context, userID string, section string) (map[string]any, error)
GetDiscoverSection(ctx context.Context, userID string, section string) (map[string]any, error) GetDiscoverSection(ctx context.Context, userID string, section string) (map[string]any, error)
GetAnimeByID(ctx context.Context, id int) (Anime, error) GetAnimeByID(ctx context.Context, id int) (Anime, error)
SearchAdvanced(ctx context.Context, q, animeType, status, orderBy, sort string, genres []int, sfw bool, page, limit int) (jikan.SearchResponse, error) SearchAdvanced(ctx context.Context, q, animeType, status, orderBy, sort string, genres []int, sfw bool, page, limit int) (jikan.SearchResult, error)
GetGenres(ctx context.Context) ([]Genre, error) GetGenres(ctx context.Context) ([]Genre, error)
GetCharacters(ctx context.Context, id int) ([]Character, error) GetCharacters(ctx context.Context, id int) ([]Character, error)
GetRecommendations(ctx context.Context, id int) ([]Recommendation, error) GetRecommendations(ctx context.Context, id int) ([]Recommendation, error)
GetRelations(ctx context.Context, id int) ([]jikan.Relation, error) GetRelations(ctx context.Context, id int) ([]jikan.RelationEntry, error)
GetEpisodes(ctx context.Context, id int, page int) (jikan.EpisodesResponse, error) GetEpisodes(ctx context.Context, id int, page int) (jikan.EpisodesResponse, error)
GetRandomAnime(ctx context.Context) (Anime, error) GetRandomAnime(ctx context.Context) (Anime, error)
} }

View File

@@ -18,7 +18,7 @@ func (r *playbackRepository) GetWatchListEntry(ctx context.Context, params db.Ge
return r.queries.GetWatchListEntry(ctx, params) return r.queries.GetWatchListEntry(ctx, params)
} }
func (r *playbackRepository) GetContinueWatchingEntry(ctx context.Context, params db.GetContinueWatchingEntryParams) (db.GetContinueWatchingEntryRow, error) { func (r *playbackRepository) GetContinueWatchingEntry(ctx context.Context, params db.GetContinueWatchingEntryParams) (db.ContinueWatchingEntry, error) {
return r.queries.GetContinueWatchingEntry(ctx, params) return r.queries.GetContinueWatchingEntry(ctx, params)
} }