Skip to content

Commit

Permalink
feat : mapper에 회원이름 필드 넣는 부분 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dlswns2480 committed Jan 17, 2024
1 parent 09efc17 commit 4482c68
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class ReservationMapper {
public static CreateReservationResponse toCreateReservationResponse(Reservation reservation) {
return CreateReservationResponse.builder()
.shopName(reservation.getShop().getName())
.memberName("memberA")
.memberName(reservation.getMember().getName())
.date(reservation.getReservationTime().getTime())
.peopleCount(reservation.getPeopleCount())
.build();
Expand All @@ -35,7 +35,7 @@ public static GetAllReservationResponse toGetAllReservationRepsonse(Reservation
public static ModifyReservationResponse toModifyReservationResponse(Reservation reservation) {
return ModifyReservationResponse.builder()
.shopName(reservation.getShop().getName())
.memberName("memberA")
.memberName(reservation.getMember().getName())
.date(reservation.getReservationTime().getTime())
.peopleCount(reservation.getPeopleCount())
.build();
Expand Down

0 comments on commit 4482c68

Please sign in to comment.