Skip to content

Commit 20debad

Browse files
committed
Feat(client): 리마인드 API 버전 업데이트 및 타입 주석 수정
1 parent 5a38bab commit 20debad

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

apps/client/src/pages/remind/apis/axios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const getRemindArticles = async (
66
page: number,
77
size: number
88
) => {
9-
const { data } = await apiRequest.get(`/api/v2/articles/remind`, {
9+
const { data } = await apiRequest.get(`/api/v3/articles/remind`, {
1010
params: {
1111
now: nowDate,
1212
'read-status': readStatus,

apps/client/src/pages/remind/types/api.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// 리마인드 전체 조회
1+
// 리마인드 전체 조회 (v3)
22
interface Category {
33
categoryId: number;
44
categoryName: string;
@@ -8,14 +8,19 @@ interface Category {
88
export interface ArticleWithCategory {
99
articleId: number;
1010
url: string;
11+
title: string;
12+
thumbnailUrl: string;
1113
memo: string;
1214
createdAt: string;
1315
isRead: boolean;
16+
isReadAfterRemind: boolean;
1417
remindAt: string;
1518
category: Category;
1619
}
1720

1821
export interface ArticleListResponse {
22+
hasNext: boolean;
23+
totalArticleCount: number;
1924
readArticleCount: number;
2025
unreadArticleCount: number;
2126
articles: ArticleWithCategory[];

0 commit comments

Comments
 (0)