Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package dmu.dasom.api.domain.interview.dto;

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

@NotNull(message = "면접 슬롯 상태는 필수 입력 값입니다.")
@Schema(description = "면접 슬롯의 상태 (ACTIVE, INACTIVE, CLOSED)", example = "ACTIVE")
private InterviewStatus interviewStatus; // 면접 슬롯 상태

public InterviewSlotResponseDto(InterviewSlot slot){
this.id = slot.getId();
this.interviewDate = slot.getInterviewDate();
this.startTime = slot.getStartTime();
this.endTime = slot.getEndTime();
this.maxCandidates = slot.getMaxCandidates();
this.currentCandidates = slot.getCurrentCandidates();
this.interviewStatus = slot.getInterviewStatus();
}

}