-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdto.ts
More file actions
46 lines (40 loc) · 920 Bytes
/
dto.ts
File metadata and controls
46 lines (40 loc) · 920 Bytes
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
44
45
46
type RequestStatusEnum = 'accepted' | 'rejected' | 'pending';
// 매칭 요청
// request
export interface CreateMatchingRequest {
requesterId: number;
targetId: number;
message: string;
}
// 최근 매칭 조회 (채팅방 리스트에서)
export interface LatestMatchingData {
id?: number;
requesterId?: number;
targetId?: number;
requestStatus?: RequestStatusEnum;
createdAt: Date;
}
// 전체 매칭 리스트 조회
export interface MatchingData {
id: number;
message: string;
createdAt: string;
chatRoomId: number;
targetId: number;
requester: RequesterDto;
requestStatus: RequestStatusEnum;
}
export interface RequesterDto {
id: number;
nickname: string;
profilePictureUrl: string;
representativePost: RepresentativePostDto;
}
export interface RepresentativePostDto {
postImages: PostImageDto[];
styleTags: string[];
}
export interface PostImageDto {
url: string;
orderNum: number;
}