[common/components] chore: 알림 api 수정
This commit is contained in:
@@ -70,14 +70,14 @@ const getNoticeUserList = async (
|
||||
};
|
||||
|
||||
const getUnreadNoticeCount = async (recvUnqId: string) => {
|
||||
const response = await client.get<PageableList<NoticeUser>>(
|
||||
const response = await client.get<number>(
|
||||
`${ENDPOINT.CMS_SERVICE.NOTICE_USER}/${recvUnqId}/unread/count`,
|
||||
);
|
||||
return response.data;
|
||||
};
|
||||
|
||||
const readNotice = async (notiId: number) => {
|
||||
const response = await client.post(
|
||||
const response = await client.put(
|
||||
`${ENDPOINT.CMS_SERVICE.NOTICE}/${notiId}/read`,
|
||||
);
|
||||
return response.data;
|
||||
|
||||
Reference in New Issue
Block a user