Skip to content

Commit

Permalink
[fix] 서류 합격 확인 response 수정 (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdtkdgns authored Aug 2, 2023
1 parent 18ce0ca commit e91f2dc
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
import ceos.backend.global.common.dto.ParsedDuration;
import ceos.backend.global.util.ParsedDurationConvertor;
import com.fasterxml.jackson.annotation.JsonUnwrapped;
import java.time.LocalDate;
import lombok.Builder;
import lombok.Getter;

import java.time.LocalDate;

@Getter
public class GetResultResponse {
private Pass pass;
Expand All @@ -23,6 +24,8 @@ public class GetResultResponse {

private LocalDate otDate;

private String openChatUrl;

private boolean attendanceStatus;

@Builder
Expand All @@ -32,13 +35,15 @@ private GetResultResponse(
String name,
ParsedDuration parsedDuration,
LocalDate otDate,
boolean attendanceStatus) {
boolean attendanceStatus,
String openChatUrl) {
this.pass = pass;
this.generation = generation;
this.name = name;
this.parsedDuration = parsedDuration;
this.otDate = otDate;
this.attendanceStatus = attendanceStatus;
this.openChatUrl = openChatUrl;
}

public static GetResultResponse toDocumentResult(
Expand All @@ -51,6 +56,7 @@ public static GetResultResponse toDocumentResult(
ParsedDurationConvertor.parsingDuration(application.getInterviewDatetime()))
.otDate(recruitment.getOtDate())
.attendanceStatus(application.isInterviewCheck())
.openChatUrl(recruitment.getOpenChatUrl())
.build();
}

Expand All @@ -63,6 +69,7 @@ public static GetResultResponse toFinalResult(
.parsedDuration(
ParsedDurationConvertor.parsingDuration(application.getInterviewDatetime()))
.otDate(recruitment.getOtDate())
.openChatUrl(recruitment.getOpenChatUrl())
.attendanceStatus(application.isFinalCheck())
.build();
}
Expand Down

0 comments on commit e91f2dc

Please sign in to comment.