feat: add recommendation invalidator interface
This commit is contained in:
@@ -137,6 +137,10 @@ type AnimeCatalogService interface {
|
|||||||
GetTopPicksForYou(ctx context.Context, userID string) (CatalogSectionData, error)
|
GetTopPicksForYou(ctx context.Context, userID string) (CatalogSectionData, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type RecommendationInvalidator interface {
|
||||||
|
InvalidateTopPicksForUser(userID string)
|
||||||
|
}
|
||||||
|
|
||||||
type AnimeSearchService interface {
|
type AnimeSearchService interface {
|
||||||
SearchAdvanced(ctx context.Context, q, animeType, status, orderBy, sort string, genres []int, studioID int, sfw bool, page, limit int) (jikan.SearchResult, error)
|
SearchAdvanced(ctx context.Context, q, animeType, status, orderBy, sort string, genres []int, studioID int, sfw bool, page, limit int) (jikan.SearchResult, error)
|
||||||
GetProducerNameByID(ctx context.Context, id int) (string, error)
|
GetProducerNameByID(ctx context.Context, id int) (string, error)
|
||||||
|
|||||||
Reference in New Issue
Block a user