Skip to content

Commit

Permalink
fix: Apply changes to GET /shared/posts/studio/{postId} (kookmin-sw#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjeongmin committed May 8, 2024
1 parent 3ddae05 commit f1e2e15
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions src/entities/shared-post/shared-post.type.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { type RentalType, type RoomType } from '@/shared/types';

export interface SharedPostListItem {
id: number;
title: string;
Expand Down Expand Up @@ -47,7 +45,15 @@ export interface SharedPost {
id: number;
title: string;
content: string;
roomMateFeatures: string[];
roomMateFeatures: {
location: string;
features: {
smoking: string;
roomSharingOption: string;
mateAge: string;
options: string; // 프런트에서 파싱 필요.
};
};
participants: Array<{ memberId: string; profileImage: string }>;
roomImages: Set<{
fileName: string;
Expand All @@ -61,29 +67,26 @@ export interface SharedPost {
birthYear: string;
gender: string;
phoneNumber: string;
myCardFeatures: string[];
mateCardFeatures: string[];
profileImageFileName: string;
createdAt: Date;
createdBy: string;
modifiedAt: Date;
modifiedBy: string;
};
address: {
oldAddress: string;
roadAddress: string;
};
roomInfo: {
id: number;
address: {
city: string;
oldAddress: string;
roadAddress: string;
detailAddress?: string;
};
roomType: RoomType;
roomType: string;
floorType: string;
size: number;
numberOfRoom: number;
numberOfBathRoom: number;
hasLivingRoom: boolean;
recruitmentCapacity: number;
rentalType: RentalType;
rentalType: string;
expectedPayment: number;
extraOption: {
canPark: boolean;
Expand Down

0 comments on commit f1e2e15

Please sign in to comment.