Skip to content

Commit

Permalink
Merge pull request #126 from dongkyun0713/dongkyun
Browse files Browse the repository at this point in the history
fix() : 매칭게시판 사용자 레벨 조회추가
  • Loading branch information
dongkyun0713 authored Feb 28, 2024
2 parents b2bea48 + 41a794e commit 783f1dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class MatchingPostResponseDto {
private Integer viewCount;
private Integer reviewCount;
private LocalDateTime updateDate;
private Integer level;

public static MatchingPostResponseDto of(
MatchingPost matchingPost) {
Expand All @@ -36,7 +37,8 @@ public static MatchingPostResponseDto of(
matchingPost.getContent(),
matchingPost.getViewCount(),
matchingPost.getReviewCount(),
matchingPost.getUpdateDate());
matchingPost.getUpdateDate(),
matchingPost.getUser().getLevel());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ public class MatchingPostReviewResponseDto {
private String profile;
private String content;
private LocalDateTime updateDate;
private Integer level;

public MatchingPostReviewResponseDto(MatchingPostReview matchingPostReview) {
this.reviewId = matchingPostReview.getReview_id();
this.reviewAuthor = matchingPostReview.getReviewAuthor().getNickname();
this.profile = matchingPostReview.getReviewAuthor().getProfile();
this.content = matchingPostReview.getContent();
this.updateDate = matchingPostReview.getUpdateDate();
this.level = matchingPostReview.getReviewAuthor().getLevel();
}
}

0 comments on commit 783f1dd

Please sign in to comment.