Skip to content

Commit

Permalink
feat: 봉사자 신청 내역 단건 조회 API 수정 (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyeong-hyeok committed Jun 6, 2024
1 parent b0c5ab7 commit a047cae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
public record ApplicationVolunteerGetOneResponse(Long id,
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy.MM.dd", timezone = "Asia/Seoul")
LocalDate createdDate,
String nickname,
String volunteerName, String phone, String content) {

public static ApplicationVolunteerGetOneResponse from(Application application) {
return new ApplicationVolunteerGetOneResponse(application.getId(), application.getCreatedDate().toLocalDate(),
return new ApplicationVolunteerGetOneResponse(application.getId(), application.getCreatedDate().toLocalDate(), application.getVolunteer().getNickname(),
application.getVolunteerName(), application.getPhone(), application.getContent());
}

Expand Down

0 comments on commit a047cae

Please sign in to comment.