From 5263b6c1b81b6c6f78884116e242233de3651969 Mon Sep 17 00:00:00 2001 From: jeong724 Date: Tue, 14 Jan 2025 01:10:54 +0900 Subject: [PATCH] =?UTF-8?q?feat=20:=20=EC=9D=91=EB=8B=B5=20dto=EC=97=90=20?= =?UTF-8?q?postType=20=EC=B6=94=EA=B0=80=ED=95=B4=20=ED=9A=8C=EA=B3=A0?= =?UTF-8?q?=EC=9D=BC=EC=A7=80/=EC=BB=A4=EB=AE=A4=EB=8B=88=ED=8B=B0=20?= =?UTF-8?q?=EA=B5=AC=EB=B6=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/itstime/reflog/community/dto/CommunityDto.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/itstime/reflog/community/dto/CommunityDto.java b/src/main/java/itstime/reflog/community/dto/CommunityDto.java index 6f4be18..2b806b5 100644 --- a/src/main/java/itstime/reflog/community/dto/CommunityDto.java +++ b/src/main/java/itstime/reflog/community/dto/CommunityDto.java @@ -6,6 +6,7 @@ import itstime.reflog.comment.dto.CommentDto; import itstime.reflog.community.domain.Community; +import itstime.reflog.postlike.domain.enums.PostType; import itstime.reflog.retrospect.domain.Retrospect; import lombok.*; @@ -46,6 +47,7 @@ public static class CombinedCategoryResponse { private int totalLike; private Long totalComment; private Long postId; + private PostType postType; public static CombinedCategoryResponse fromCommunity(Community community, String writer, Boolean isLike, Integer totalLike, Long totalComment) { return CombinedCategoryResponse.builder() @@ -59,6 +61,7 @@ public static CombinedCategoryResponse fromCommunity(Community community, String .totalLike(totalLike) .writer(writer) .postId(community.getId()) + .postType(PostType.COMMUNITY) .build(); } @@ -77,6 +80,7 @@ public static CombinedCategoryResponse fromRetrospect(Retrospect retrospect, Str .totalComment(totalComment) .writer(writer) .postId(retrospect.getId()) + .postType(PostType.RETROSPECT) .build(); } }