Skip to content

Commit 831cae2

Browse files
committed
fix: 분실물 상세 조회 시 회원 id 반환
1 parent 4105d65 commit 831cae2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/_ITHON/ReturnZone/domain/lostpost/dto/res/LostPostResponseDto.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ public class LostPostResponseDto {
2828
@Schema(description = "분실물 제목", example = "소니 헤드셋")
2929
private final String title;
3030

31+
@Schema(description = "유저 ID", example = "1")
32+
private final Long memberId;
33+
3134
@Schema(description = "유저 프로필", example = "https://your-bucket.s3.ap-northeast-2.amazonaws.com/lostPosts/lostpost1.jpg")
3235
private final String memberImageUrl;
3336

@@ -87,6 +90,7 @@ public class LostPostResponseDto {
8790
private LostPostResponseDto(LostPost lostPost, Member member, List<SimpleLostPostResponseDto> similarLostPosts) {
8891
this.lostPostId = lostPost.getId();
8992
this.title = lostPost.getTitle();
93+
this.memberId = member.getId();
9094
this.memberImageUrl = member.getImageUrl();
9195
this.nickname = member.getNickname();
9296
this.timeAgo = TimeUtil.getTimeAgo(lostPost.getCreatedAt());

0 commit comments

Comments
 (0)