Skip to content

Commit

Permalink
Feat: helloCallDetailResponse에 ServiceTime 필드 추가 (프론트 요청) (#143)
Browse files Browse the repository at this point in the history
feat: 안부전화 상세보기 응답필드에 serviceTime추가
  • Loading branch information
GitJIHO authored Nov 2, 2024
1 parent d911ac5 commit ab36b30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"requirement": "어머님께서 매일 아침 등산을 하시는 걸 좋아하세요. 요즘 날씨가 추워졌는데, 건강하게 등산을 잘 다니시는지 여쭤봐 주세요. 등산 이야기를 하면 기분이 좋아지실 거예요.",
"seniorName": "권지민",
"seniorPhoneNumber": "01013572468",
"price": 13000
"price": 13000,
"serviceTime": 10
}
""")
public record HelloCallDetailResponse(
Expand All @@ -41,7 +42,8 @@ public record HelloCallDetailResponse(
String requirement,
String seniorName,
String seniorPhoneNumber,
int price
int price,
int serviceTime
) {
public record TimeSlot(
String dayName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public HelloCallDetailResponse readHelloCallDetail(Long helloCallId) {

return new HelloCallDetailResponse(helloCall.getStartDate(), helloCall.getEndDate(),
timeSlots, helloCall.getRequirement(), helloCall.getSenior().getName(),
helloCall.getSenior().getPhoneNumber(), helloCall.getPrice());
helloCall.getSenior().getPhoneNumber(), helloCall.getPrice(), helloCall.getServiceTime());
}

@Transactional
Expand Down

0 comments on commit ab36b30

Please sign in to comment.