Skip to content

Commit 96cc73f

Browse files
authored
fix: 면접 예약 API 면접 일정 조회시 status도 같이 반환
1 parent 7e08d11 commit 96cc73f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package dmu.dasom.api.domain.interview.dto;
22

33
import dmu.dasom.api.domain.interview.entity.InterviewSlot;
4+
import dmu.dasom.api.domain.interview.enums.InterviewStatus;
45
import io.swagger.v3.oas.annotations.media.Schema;
56
import jakarta.validation.constraints.Max;
67
import jakarta.validation.constraints.Min;
@@ -45,13 +46,18 @@ public class InterviewSlotResponseDto {
4546
@Schema(description = "현재 해당 슬롯에 예약된 지원자 수", example = "1")
4647
private Integer currentCandidates; // 현재 예약된 지원자 수
4748

49+
@NotNull(message = "면접 슬롯 상태는 필수 입력 값입니다.")
50+
@Schema(description = "면접 슬롯의 상태 (ACTIVE, INACTIVE, CLOSED)", example = "ACTIVE")
51+
private InterviewStatus interviewStatus; // 면접 슬롯 상태
52+
4853
public InterviewSlotResponseDto(InterviewSlot slot){
4954
this.id = slot.getId();
5055
this.interviewDate = slot.getInterviewDate();
5156
this.startTime = slot.getStartTime();
5257
this.endTime = slot.getEndTime();
5358
this.maxCandidates = slot.getMaxCandidates();
5459
this.currentCandidates = slot.getCurrentCandidates();
60+
this.interviewStatus = slot.getInterviewStatus();
5561
}
5662

5763
}

0 commit comments

Comments
 (0)