Skip to content

Commit f1e2e15

Browse files
committed
fix: Apply changes to GET /shared/posts/studio/{postId} (kookmin-sw#75)
1 parent 3ddae05 commit f1e2e15

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

src/entities/shared-post/shared-post.type.ts

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { type RentalType, type RoomType } from '@/shared/types';
2-
31
export interface SharedPostListItem {
42
id: number;
53
title: string;
@@ -47,7 +45,15 @@ export interface SharedPost {
4745
id: number;
4846
title: string;
4947
content: string;
50-
roomMateFeatures: string[];
48+
roomMateFeatures: {
49+
location: string;
50+
features: {
51+
smoking: string;
52+
roomSharingOption: string;
53+
mateAge: string;
54+
options: string; // 프런트에서 파싱 필요.
55+
};
56+
};
5157
participants: Array<{ memberId: string; profileImage: string }>;
5258
roomImages: Set<{
5359
fileName: string;
@@ -61,29 +67,26 @@ export interface SharedPost {
6167
birthYear: string;
6268
gender: string;
6369
phoneNumber: string;
64-
myCardFeatures: string[];
65-
mateCardFeatures: string[];
70+
profileImageFileName: string;
6671
createdAt: Date;
6772
createdBy: string;
6873
modifiedAt: Date;
6974
modifiedBy: string;
7075
};
76+
address: {
77+
oldAddress: string;
78+
roadAddress: string;
79+
};
7180
roomInfo: {
7281
id: number;
73-
address: {
74-
city: string;
75-
oldAddress: string;
76-
roadAddress: string;
77-
detailAddress?: string;
78-
};
79-
roomType: RoomType;
82+
roomType: string;
8083
floorType: string;
8184
size: number;
8285
numberOfRoom: number;
8386
numberOfBathRoom: number;
8487
hasLivingRoom: boolean;
8588
recruitmentCapacity: number;
86-
rentalType: RentalType;
89+
rentalType: string;
8790
expectedPayment: number;
8891
extraOption: {
8992
canPark: boolean;

0 commit comments

Comments
 (0)