Skip to content

Commit

Permalink
Chore(#14): Response 필드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ratcomp9992 committed Aug 28, 2024
1 parent cfc4e7d commit c958952
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ public record RecipeResponse(
Long id,
String menu,
String mainImage,
String mbti,
String way,
String category
) {
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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public List<Recipe> getInitAllRecipeList() {
recipe.id,
recipe.menu,
recipe.mainImage,
recipe.mbti,
recipe.way,
recipe.category))
.from(recipe)
Expand All @@ -35,6 +36,7 @@ public List<Recipe> getInitCategoryRecipeList(String category) {
recipe.id,
recipe.menu,
recipe.mainImage,
recipe.mbti,
recipe.way,
recipe.category))
.from(recipe)
Expand All @@ -50,6 +52,7 @@ public List<Recipe> getInitSearchRecipeList(String keyword) {
recipe.id,
recipe.menu,
recipe.mainImage,
recipe.mbti,
recipe.way,
recipe.category))
.from(recipe)
Expand All @@ -65,6 +68,7 @@ public List<Recipe> addFromAllRecipeList() {
recipe.id,
recipe.menu,
recipe.mainImage,
recipe.mbti,
recipe.way,
recipe.category))
.from(recipe)
Expand All @@ -78,6 +82,7 @@ public Recipe addOneFromAllRecipeList() {
recipe.id,
recipe.menu,
recipe.mainImage,
recipe.mbti,
recipe.way,
recipe.category))
.from(recipe)
Expand All @@ -90,6 +95,7 @@ public List<Recipe> addFromCategoryRecipeList(String category) {
recipe.id,
recipe.menu,
recipe.mainImage,
recipe.mbti,
recipe.way,
recipe.category))
.from(recipe)
Expand All @@ -105,6 +111,7 @@ public Recipe addOneFromCategoryRecipeList(String category) {
recipe.id,
recipe.menu,
recipe.mainImage,
recipe.mbti,
recipe.way,
recipe.category))
.from(recipe)
Expand All @@ -119,6 +126,7 @@ public List<Recipe> addFromSearchRecipeList(String keyword) {
recipe.id,
recipe.menu,
recipe.mainImage,
recipe.mbti,
recipe.way,
recipe.category))
.from(recipe)
Expand All @@ -134,6 +142,7 @@ public Recipe addOneFromSearchRecipeList(String keyword) {
recipe.id,
recipe.menu,
recipe.mainImage,
recipe.mbti,
recipe.way,
recipe.category))
.from(recipe)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public List<RecipeResponse> getInitAllRecipeList() {
recipe.getId(),
recipe.getMenu(),
recipe.getMainImage(),
recipe.getMbti(),
recipe.getWay(),
recipe.getCategory()
));
Expand All @@ -70,6 +71,7 @@ public List<RecipeResponse> getInitCategoryRecipeList(String category) {
recipe.getId(),
recipe.getMenu(),
recipe.getMainImage(),
recipe.getMbti(),
recipe.getWay(),
recipe.getCategory()
));
Expand All @@ -90,6 +92,7 @@ public List<RecipeResponse> getInitSearchRecipeList(String keyword) {
recipe.getId(),
recipe.getMenu(),
recipe.getMainImage(),
recipe.getMbti(),
recipe.getWay(),
recipe.getCategory()
));
Expand All @@ -115,6 +118,7 @@ public List<RecipeResponse> addFromAllRecipeList() {
recipe.getId(),
recipe.getMenu(),
recipe.getMainImage(),
recipe.getMbti(),
recipe.getWay(),
recipe.getCategory()
));
Expand All @@ -140,6 +144,7 @@ public List<RecipeResponse> addFromCategoryRecipeList(String category) {
recipe.getId(),
recipe.getMenu(),
recipe.getMainImage(),
recipe.getMbti(),
recipe.getWay(),
recipe.getCategory()
));
Expand All @@ -165,6 +170,7 @@ public List<RecipeResponse> addFromSearchRecipeList(String keyword) {
recipe.getId(),
recipe.getMenu(),
recipe.getMainImage(),
recipe.getMbti(),
recipe.getWay(),
recipe.getCategory()
));
Expand Down

0 comments on commit c958952

Please sign in to comment.