File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
src/main/java/dmu/dasom/api/domain/interview Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 44import jakarta .validation .constraints .NotNull ;
55import 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}
Original file line number Diff line number Diff 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 ());
You can’t perform that action at this time.
0 commit comments