Skip to content

Commit

Permalink
Temp2 (#88)
Browse files Browse the repository at this point in the history
* feat: 엔티티 수정(떡국 이미지)

* feat: 엔티티 수정(떡국 이미지)
  • Loading branch information
h-beeen authored Feb 3, 2024
1 parent c56db56 commit 86de596
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ public static UserInfoResponse transferToUserInfoResponse(Member member) {

public static MemberResponse transferToMemberResponse(Member member) {
return new MemberResponse(
member.getId(),
member.getNickname(),
member.getPrimaryIngredient()
member.getId(),
member.getNickname(),
member.getPrimaryIngredient()
);
}

Expand All @@ -66,6 +66,8 @@ private static SimpleTteokgukResponse toTteokgukResponse(Tteokguk tteokguk) {
.access(tteokguk.isAccess())
.completion(tteokguk.isCompletion())
.ingredients(tteokguk.getIngredients())
.visibleIngredient1(tteokguk.getVisibleIngredient1())
.visibleIngredient2(tteokguk.getVisibleIngredient2())
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public record SimpleTteokgukResponse(
boolean access,
boolean completion,
List<Ingredient> ingredients,
BackgroundColor backgroundColor
BackgroundColor backgroundColor,
Ingredient visibleIngredient1,
Ingredient visibleIngredient2
) {
}

0 comments on commit 86de596

Please sign in to comment.