From 7d6b61d331fbb38fdc0302b2d2cdf1e705d7e79d Mon Sep 17 00:00:00 2001 From: mihee Date: Wed, 27 Dec 2023 16:49:04 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=9E=85=EB=8D=95=ED=8F=AC=EC=9D=B8?= =?UTF-8?q?=ED=8A=B8=20=ED=86=B5=EA=B3=84=20=EC=A1=B0=ED=9A=8C=20api=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20#303?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/animes/api/AnimeApi.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/features/animes/api/AnimeApi.ts b/src/features/animes/api/AnimeApi.ts index 3edaea41..7fc70830 100644 --- a/src/features/animes/api/AnimeApi.ts +++ b/src/features/animes/api/AnimeApi.ts @@ -59,6 +59,10 @@ type ListAnimeResponse = CursorPage<{ starScoreAvg: number; }>; +export type AttractionPointStatics = { + [K in keyof AttractionPoint]: number; +}; + export type TOP10ListResponse = Pick & { animeId: number; genres: string[]; @@ -92,6 +96,10 @@ export default class AnimeApi { return get<{ starRatingAvg: number }>(`/animes/${id}/ratings/average`); } + getAttractionPoint(id: number) { + return get(`/attraction-points/animes/${id}`); + } + async getTOP10List(): Promise { return get(`/animes/weekly`); }