diff --git a/Titto_Backend/src/main/java/com/example/titto_backend/matchingBoard/dto/response/matchingPostResponse/MatchingPostResponseDto.java b/Titto_Backend/src/main/java/com/example/titto_backend/matchingBoard/dto/response/matchingPostResponse/MatchingPostResponseDto.java index b027d7e..c3946f5 100644 --- a/Titto_Backend/src/main/java/com/example/titto_backend/matchingBoard/dto/response/matchingPostResponse/MatchingPostResponseDto.java +++ b/Titto_Backend/src/main/java/com/example/titto_backend/matchingBoard/dto/response/matchingPostResponse/MatchingPostResponseDto.java @@ -14,6 +14,7 @@ public class MatchingPostResponseDto { private Long matchingPostId; + private Long matchingPostAuthorId; private String authorNickName; private String profile; private String category; @@ -29,6 +30,7 @@ public static MatchingPostResponseDto of( MatchingPost matchingPost) { return new MatchingPostResponseDto( matchingPost.getMatchingPostId(), + matchingPost.getUser().getId(), matchingPost.getUser().getNickname(), matchingPost.getUser().getProfile(), String.valueOf(matchingPost.getCategory()), diff --git a/Titto_Backend/src/main/java/com/example/titto_backend/matchingBoard/dto/response/matchingPostReviewResponse/MatchingPostReviewResponseDto.java b/Titto_Backend/src/main/java/com/example/titto_backend/matchingBoard/dto/response/matchingPostReviewResponse/MatchingPostReviewResponseDto.java index 7b3fc0f..f7703dd 100644 --- a/Titto_Backend/src/main/java/com/example/titto_backend/matchingBoard/dto/response/matchingPostReviewResponse/MatchingPostReviewResponseDto.java +++ b/Titto_Backend/src/main/java/com/example/titto_backend/matchingBoard/dto/response/matchingPostReviewResponse/MatchingPostReviewResponseDto.java @@ -1,19 +1,18 @@ package com.example.titto_backend.matchingBoard.dto.response.matchingPostReviewResponse; import com.example.titto_backend.matchingBoard.domain.review.MatchingPostReview; +import java.time.LocalDateTime; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; -import java.time.LocalDateTime; - @Getter @Builder @NoArgsConstructor @AllArgsConstructor public class MatchingPostReviewResponseDto { - + private Long reviewAuthorId; private Long reviewId; private String reviewAuthor; private String profile; @@ -22,6 +21,7 @@ public class MatchingPostReviewResponseDto { private Integer level; public MatchingPostReviewResponseDto(MatchingPostReview matchingPostReview) { + this.reviewAuthorId = matchingPostReview.getReviewAuthor().getId(); this.reviewId = matchingPostReview.getReview_id(); this.reviewAuthor = matchingPostReview.getReviewAuthor().getNickname(); this.profile = matchingPostReview.getReviewAuthor().getProfile();