Skip to content

Commit c2e13e1

Browse files
authored
fix: 면접 예약자 조회 API 면접일, 면접시간, 면접을 예약한 날짜과 시간 추가
* fix: 면접 예약 API 면접 일정 조회시 status도 같이 반환 * fix: 면접 예약자 조회 API 면접일, 면접시간, 면접을 예약한 날짜과 시간 추가
1 parent 5511ce7 commit c2e13e1

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

src/main/java/dmu/dasom/api/domain/interview/dto/InterviewReservationApplicantResponseDto.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
import jakarta.validation.constraints.NotNull;
55
import lombok.*;
66

7+
import java.time.LocalDate;
8+
import java.time.LocalDateTime;
9+
import java.time.LocalTime;
10+
711
@Getter
812
@Setter
913
@NoArgsConstructor
@@ -37,4 +41,18 @@ public class InterviewReservationApplicantResponseDto {
3741

3842
@Schema(description = "지원 동기", example = "동아리 활동을 통해 새로운 경험을 쌓고 싶어서 지원합니다.")
3943
private String reasonForApply;
44+
45+
@NotNull(message = "면접 일자는 필수 값입니다.")
46+
@Schema(description = "면접 일자", example = "2025-03-12")
47+
private LocalDate interviewDate;
48+
49+
@NotNull(message = "면접 시간은 필수 값입니다.")
50+
@Schema(description = "면접 시간", example = "10:00")
51+
private LocalTime interviewTime;
52+
53+
@NotNull(message = "면접 신청 날짜는 필수 값입니다.")
54+
@Schema(description = "면접 신청 날짜", example = "2025-03-01T12:00:00")
55+
private LocalDateTime appliedDate;
56+
57+
4058
}

src/main/java/dmu/dasom/api/domain/interview/service/InterviewServiceImpl.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ public List<InterviewReservationApplicantResponseDto> getAllInterviewApplicants(
155155
return reservations.stream()
156156
.map(reservation -> {
157157
Applicant applicant = reservation.getApplicant();
158+
InterviewSlot slot = reservation.getSlot();
158159
return InterviewReservationApplicantResponseDto.builder()
159160
.applicantId(applicant.getId())
160161
.applicantName(applicant.getName())
@@ -163,6 +164,9 @@ public List<InterviewReservationApplicantResponseDto> getAllInterviewApplicants(
163164
.email(applicant.getEmail())
164165
.activityWish(applicant.getActivityWish())
165166
.reasonForApply(applicant.getReasonForApply())
167+
.interviewDate(slot.getInterviewDate())
168+
.interviewTime(slot.getStartTime())
169+
.appliedDate(reservation.getCreatedAt())
166170
.build();
167171
})
168172
.collect(Collectors.toList());

0 commit comments

Comments
 (0)