From 5c369c3756e9fdeee9ae6117c8aa8c4f5f7cde0e Mon Sep 17 00:00:00 2001 From: joona95 Date: Sun, 31 Aug 2025 23:08:59 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=A0=88=EC=8B=9C=ED=94=BC=20=EC=83=81?= =?UTF-8?q?=EC=84=B8=20=EC=A1=B0=ED=9A=8C=20=EC=8B=9C=20=EA=B2=8C=EC=8B=9C?= =?UTF-8?q?=EC=9E=90=20=ED=94=84=EB=A1=9C=ED=95=84=20=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80,=20=EA=B3=B5=EA=B0=9C=20=EC=97=AC=EB=B6=80=20?= =?UTF-8?q?=EC=A0=95=EB=B3=B4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../recipe/application/dto/RecipeDetailResponse.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/recipe/app/src/recipe/application/dto/RecipeDetailResponse.java b/src/main/java/com/recipe/app/src/recipe/application/dto/RecipeDetailResponse.java index 37a71dd0..3bcfc947 100644 --- a/src/main/java/com/recipe/app/src/recipe/application/dto/RecipeDetailResponse.java +++ b/src/main/java/com/recipe/app/src/recipe/application/dto/RecipeDetailResponse.java @@ -39,13 +39,18 @@ public class RecipeDetailResponse { private final Long postUserId; @Schema(description = "게시자명") private final String postUserName; + @Schema(description = "게시자 프로필 이미지") + private final String postUserProfileImage; @Schema(description = "신고 여부") private final Boolean isReported; + @Schema(description = "공개 여부") + private final Boolean isHidden; @Builder public RecipeDetailResponse(Long recipeId, String recipeName, String introduction, String thumbnailImgUrl, Long cookingTime, String level, List recipeIngredients, List recipeProcesses, - Boolean isUserScrap, long scrapCnt, long viewCnt, Long postUserId, String postUserName, Boolean isReported) { + Boolean isUserScrap, long scrapCnt, long viewCnt, Long postUserId, String postUserName, String postUserProfileImage, + Boolean isReported, Boolean isHidden) { this.recipeId = recipeId; this.recipeName = recipeName; @@ -60,7 +65,9 @@ public RecipeDetailResponse(Long recipeId, String recipeName, String introductio this.viewCnt = viewCnt; this.postUserId = postUserId; this.postUserName = postUserName; + this.postUserProfileImage = postUserProfileImage; this.isReported = isReported; + this.isHidden = isHidden; } public static RecipeDetailResponse from(Recipe recipe, boolean isUserScrap, User postUser, List ingredientNamesInFridge) { @@ -85,7 +92,9 @@ public static RecipeDetailResponse from(Recipe recipe, boolean isUserScrap, User .viewCnt(recipe.getViewCnt()) .postUserId(postUser != null ? postUser.getUserId() : null) .postUserName(postUser != null ? postUser.getNickname() : null) + .postUserProfileImage(postUser != null ? postUser.getProfileImgUrl() : null) .isReported(recipe.isReported()) + .isHidden(recipe.isHidden()) .build(); } } \ No newline at end of file