Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BE-95] 면접 기록 조회 응답에 지원자의 합/불 상태를 나타내는 state 필드 추가 #260

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

rlajm1203
Copy link
Collaborator

개요

close #258

작업사항

  • 면접 기록 페이지의 응답인, RecordResponseDto 클래스에 state 필드를 추가하였습니다.

변경로직

@Data
@AllArgsConstructor
public class RecordViewResponseDto {
    private String applicantId;
    private Double scores;
    private String name;
    private String url;
    private String record;
    private String field1;
    private String field2;
    private String grade;
    private String semester;
    private String modifiedAt;
    private ApplicantState state;

    public static RecordViewResponseDto from(Record recordVo, Double score, MongoAnswer applicant) {
        String name =
                "["
                        + applicant.getQna().get("field").toString()
                        + "] "
                        + applicant.getQna().get("name").toString();
        return new RecordViewResponseDto(
                recordVo.getApplicantId(),
                score,
                name,
                recordVo.getUrl(),
                recordVo.getRecord(),
                applicant.getQna().get("field1").toString(),
                applicant.getQna().get("field2").toString(),
                applicant.getQna().get("grade").toString(),
                applicant.getQna().get("semester").toString(),
                recordVo.getUpdatedAt().toString(),
                applicant.getApplicantState());
    }
}

reference

@rlajm1203 rlajm1203 added the refactor♻️ This will not be worked on label Sep 17, 2024
@rlajm1203 rlajm1203 self-assigned this Sep 17, 2024
@rlajm1203 rlajm1203 changed the title [BE-94] 면접 기록 조회 응답에 지원자의 합/불 상태를 나타내는 state 필드 추가 [BE-95] 면접 기록 조회 응답에 지원자의 합/불 상태를 나타내는 state 필드 추가 Sep 17, 2024
@rlajm1203 rlajm1203 merged commit 1f315a1 into develop Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor♻️ This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant