Skip to content

Commit 00c9e12

Browse files
committed
[#60] ✨ add check nickname interface in mypage types
1 parent 4e00eeb commit 00c9e12

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/types/api/MyPage.types.d.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,25 @@ export interface ProfileUpdateResponse extends ProfileBase {
2929
completionRate?: number // 포트폴리오 완성률 (%)
3030
}
3131

32+
/*
33+
path: '/v1/my-page/check-nickname'
34+
POST: 닉네임 중복 체크
35+
*/
36+
export interface CheckNicknameRequest {
37+
nickname: Nickname // 닉네임 중복 검사 대상
38+
}
39+
40+
export type CheckNicknameResponse = boolean
41+
42+
/*
43+
PasswordUpdateResponse
44+
{
45+
"isSuccess": true,
46+
"code": "COMMON200",
47+
"message": "비밀번호 수정이 완료되었습니다."
48+
}
49+
*/
50+
3251
/*
3352
path: '/v1/my-page/password'
3453
PATCH: 마이 페이지 비밀번호 수정

0 commit comments

Comments
 (0)