From c958952f30dc1e4f8c93b877edfd86e3fa07e174 Mon Sep 17 00:00:00 2001 From: ndy Date: Thu, 29 Aug 2024 02:20:33 +0900 Subject: [PATCH] =?UTF-8?q?Chore(#14):=20Response=20=ED=95=84=EB=93=9C=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/recipe/controller/model/RecipeResponse.java | 4 +++- .../domain/recipe/repository/RecipeQueryRepository.java | 9 +++++++++ .../Soodgarak/domain/recipe/service/RecipeService.java | 6 ++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/main/java/Soodgarak/Soodgarak/domain/recipe/controller/model/RecipeResponse.java b/src/main/java/Soodgarak/Soodgarak/domain/recipe/controller/model/RecipeResponse.java index 4e06ebb..7294b7e 100644 --- a/src/main/java/Soodgarak/Soodgarak/domain/recipe/controller/model/RecipeResponse.java +++ b/src/main/java/Soodgarak/Soodgarak/domain/recipe/controller/model/RecipeResponse.java @@ -4,6 +4,7 @@ public record RecipeResponse( Long id, String menu, String mainImage, + String mbti, String way, String category ) { @@ -11,9 +12,10 @@ public static RecipeResponse of( Long id, String menu, String mainImage, + String mbti, String way, String category ) { - return new RecipeResponse(id, menu, mainImage, way, category); + return new RecipeResponse(id, menu, mainImage, mbti, way, category); } } diff --git a/src/main/java/Soodgarak/Soodgarak/domain/recipe/repository/RecipeQueryRepository.java b/src/main/java/Soodgarak/Soodgarak/domain/recipe/repository/RecipeQueryRepository.java index e6bb16d..3b40b0a 100644 --- a/src/main/java/Soodgarak/Soodgarak/domain/recipe/repository/RecipeQueryRepository.java +++ b/src/main/java/Soodgarak/Soodgarak/domain/recipe/repository/RecipeQueryRepository.java @@ -22,6 +22,7 @@ public List getInitAllRecipeList() { recipe.id, recipe.menu, recipe.mainImage, + recipe.mbti, recipe.way, recipe.category)) .from(recipe) @@ -35,6 +36,7 @@ public List getInitCategoryRecipeList(String category) { recipe.id, recipe.menu, recipe.mainImage, + recipe.mbti, recipe.way, recipe.category)) .from(recipe) @@ -50,6 +52,7 @@ public List getInitSearchRecipeList(String keyword) { recipe.id, recipe.menu, recipe.mainImage, + recipe.mbti, recipe.way, recipe.category)) .from(recipe) @@ -65,6 +68,7 @@ public List addFromAllRecipeList() { recipe.id, recipe.menu, recipe.mainImage, + recipe.mbti, recipe.way, recipe.category)) .from(recipe) @@ -78,6 +82,7 @@ public Recipe addOneFromAllRecipeList() { recipe.id, recipe.menu, recipe.mainImage, + recipe.mbti, recipe.way, recipe.category)) .from(recipe) @@ -90,6 +95,7 @@ public List addFromCategoryRecipeList(String category) { recipe.id, recipe.menu, recipe.mainImage, + recipe.mbti, recipe.way, recipe.category)) .from(recipe) @@ -105,6 +111,7 @@ public Recipe addOneFromCategoryRecipeList(String category) { recipe.id, recipe.menu, recipe.mainImage, + recipe.mbti, recipe.way, recipe.category)) .from(recipe) @@ -119,6 +126,7 @@ public List addFromSearchRecipeList(String keyword) { recipe.id, recipe.menu, recipe.mainImage, + recipe.mbti, recipe.way, recipe.category)) .from(recipe) @@ -134,6 +142,7 @@ public Recipe addOneFromSearchRecipeList(String keyword) { recipe.id, recipe.menu, recipe.mainImage, + recipe.mbti, recipe.way, recipe.category)) .from(recipe) diff --git a/src/main/java/Soodgarak/Soodgarak/domain/recipe/service/RecipeService.java b/src/main/java/Soodgarak/Soodgarak/domain/recipe/service/RecipeService.java index 80199ed..dec392a 100644 --- a/src/main/java/Soodgarak/Soodgarak/domain/recipe/service/RecipeService.java +++ b/src/main/java/Soodgarak/Soodgarak/domain/recipe/service/RecipeService.java @@ -51,6 +51,7 @@ public List getInitAllRecipeList() { recipe.getId(), recipe.getMenu(), recipe.getMainImage(), + recipe.getMbti(), recipe.getWay(), recipe.getCategory() )); @@ -70,6 +71,7 @@ public List getInitCategoryRecipeList(String category) { recipe.getId(), recipe.getMenu(), recipe.getMainImage(), + recipe.getMbti(), recipe.getWay(), recipe.getCategory() )); @@ -90,6 +92,7 @@ public List getInitSearchRecipeList(String keyword) { recipe.getId(), recipe.getMenu(), recipe.getMainImage(), + recipe.getMbti(), recipe.getWay(), recipe.getCategory() )); @@ -115,6 +118,7 @@ public List addFromAllRecipeList() { recipe.getId(), recipe.getMenu(), recipe.getMainImage(), + recipe.getMbti(), recipe.getWay(), recipe.getCategory() )); @@ -140,6 +144,7 @@ public List addFromCategoryRecipeList(String category) { recipe.getId(), recipe.getMenu(), recipe.getMainImage(), + recipe.getMbti(), recipe.getWay(), recipe.getCategory() )); @@ -165,6 +170,7 @@ public List addFromSearchRecipeList(String keyword) { recipe.getId(), recipe.getMenu(), recipe.getMainImage(), + recipe.getMbti(), recipe.getWay(), recipe.getCategory() ));