Skip to content

Commit

Permalink
fix: 봉사 모집글 목록 조회(봉사자) api 응답에 모집 마감 시간을 추가합니다. (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
hseong3243 authored Nov 22, 2023
1 parent bb98e0e commit fa00dab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public record FindRecruitmentResponse(
String recruitmentTitle,
LocalDateTime recruitmentStartTime,
LocalDateTime recruitmentEndTime,
LocalDateTime recruitmentDeadline,
boolean recruitmentIsClosed,
int recruitmentApplicantCount,
int recruitmentCapacity,
Expand All @@ -28,6 +29,7 @@ public static FindRecruitmentResponse from(Recruitment recruitment) {
recruitment.getTitle(),
recruitment.getStartTime(),
recruitment.getEndTime(),
recruitment.getDeadline(),
recruitment.isClosed(),
recruitment.getApplicantCount(),
recruitment.getCapacity(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ void findRecruitments() throws Exception {
.description("봉사 시작 시간"),
fieldWithPath("recruitments[].recruitmentEndTime").type(STRING)
.description("봉사 종료 시간"),
fieldWithPath("recruitments[].recruitmentDeadline").type(STRING)
.description("봉사 모집 마감 시간"),
fieldWithPath("recruitments[].recruitmentIsClosed").type(BOOLEAN)
.description("봉사 모집 마감 여부"),
fieldWithPath("recruitments[].recruitmentApplicantCount").type(NUMBER)
Expand Down Expand Up @@ -310,6 +312,8 @@ void findRecruitmentsV2() throws Exception {
.description("봉사 시작 시간"),
fieldWithPath("recruitments[].recruitmentEndTime").type(STRING)
.description("봉사 종료 시간"),
fieldWithPath("recruitments[].recruitmentDeadline").type(STRING)
.description("봉사 모집 마감 시간"),
fieldWithPath("recruitments[].recruitmentIsClosed").type(BOOLEAN)
.description("봉사 모집 마감 여부"),
fieldWithPath("recruitments[].recruitmentApplicantCount").type(NUMBER)
Expand Down

0 comments on commit fa00dab

Please sign in to comment.