-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdto.ts
More file actions
43 lines (37 loc) · 1.14 KB
/
dto.ts
File metadata and controls
43 lines (37 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import type { BaseSuccessResponse } from '@apis/core/dto';
// 사용자 정보 공통 인터페이스
export interface UserInfoData {
id: number;
name: string;
phoneNumber: string;
email: string;
nickname: string;
profilePictureUrl: string;
bio: string;
birthDate: string;
isFriend: boolean;
userStyletags: string[];
}
// 사용자 정보 조회 응답
export type GetUserInfoResponse = BaseSuccessResponse<UserInfoData>;
// 사용자 정보 수정 응답
export type PatchUserInfoResponse = BaseSuccessResponse<UserInfoData>;
// 사용자 정보 수정 요청 데이터
export interface PatchUserInfoRequest {
name: string;
phoneNumber: string;
birthDate: string;
email: string;
nickname: string;
profilePictureUrl: string;
bio: string;
userStyletags: string[];
}
// 회원 탈퇴 응답
export type PatchUserWithDrawResponse = BaseSuccessResponse<PatchUserWithdrawData>;
// 회원 탈퇴 응답 데이터
export interface PatchUserWithdrawData {
isSuccess: boolean;
code: string;
data: Record<string, never>; // 탈퇴 성공 시 항상 빈 객체가 응답으로 온다면 Record<string, never>으로 타입 안정성 높일 수 있음
}