Skip to content

Commit 479928a

Browse files
authored
Merge pull request #305 from prgrms-web-devcourse-final-project/refactor/#304
[Community] 후기글 상세 조회 dto에 태그 추가
2 parents 4634e0b + 69a5838 commit 479928a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/com/back/web7_9_codecrete_be/domain/community/post/dto/response/ReviewPostResponse.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ public class ReviewPostResponse {
2121
@Schema(description = "후기 이미지 URL 목록")
2222
private List<String> imageUrls;
2323

24+
@Schema(description = "후기 태그 목록")
25+
private List<String> tags;
26+
2427
public static ReviewPostResponse from(
2528
ReviewPost reviewPost,
2629
List<String> imageUrls
@@ -29,6 +32,7 @@ public static ReviewPostResponse from(
2932
.post(PostResponse.from(reviewPost.getPost()))
3033
.rating(reviewPost.getRating())
3134
.imageUrls(imageUrls)
35+
.tags(reviewPost.getTags())
3236
.build();
3337
}
3438
}

0 commit comments

Comments
 (0)