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 a047cae commit f1cd25c
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 ApplicationIntermediaryGetOneResponse(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 ApplicationIntermediaryGetOneResponse from(Application application) {
return new ApplicationIntermediaryGetOneResponse(application.getId(), application.getCreatedDate().toLocalDate(),
return new ApplicationIntermediaryGetOneResponse(application.getId(), application.getCreatedDate().toLocalDate(), application.getVolunteer().getNickname(),
application.getVolunteerName(), application.getPhone(), application.getContent());
}

Expand Down

0 comments on commit f1cd25c

Please sign in to comment.