diff --git a/server/.gradle/7.6.1/executionHistory/executionHistory.bin b/server/.gradle/7.6.1/executionHistory/executionHistory.bin index b8dd684f..260ae3ec 100644 Binary files a/server/.gradle/7.6.1/executionHistory/executionHistory.bin and b/server/.gradle/7.6.1/executionHistory/executionHistory.bin differ diff --git a/server/.gradle/7.6.1/executionHistory/executionHistory.lock b/server/.gradle/7.6.1/executionHistory/executionHistory.lock index 5d432a7f..bb7019d3 100644 Binary files a/server/.gradle/7.6.1/executionHistory/executionHistory.lock and b/server/.gradle/7.6.1/executionHistory/executionHistory.lock differ diff --git a/server/.gradle/7.6.1/fileHashes/fileHashes.bin b/server/.gradle/7.6.1/fileHashes/fileHashes.bin index 01c4630b..1395cca5 100644 Binary files a/server/.gradle/7.6.1/fileHashes/fileHashes.bin and b/server/.gradle/7.6.1/fileHashes/fileHashes.bin differ diff --git a/server/.gradle/7.6.1/fileHashes/fileHashes.lock b/server/.gradle/7.6.1/fileHashes/fileHashes.lock index 8aad27b4..d753531e 100644 Binary files a/server/.gradle/7.6.1/fileHashes/fileHashes.lock and b/server/.gradle/7.6.1/fileHashes/fileHashes.lock differ diff --git a/server/.gradle/7.6.1/fileHashes/resourceHashesCache.bin b/server/.gradle/7.6.1/fileHashes/resourceHashesCache.bin index d1460727..1add0445 100644 Binary files a/server/.gradle/7.6.1/fileHashes/resourceHashesCache.bin and b/server/.gradle/7.6.1/fileHashes/resourceHashesCache.bin differ diff --git a/server/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/server/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 25a65f96..5ccb37bd 100644 Binary files a/server/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/server/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/server/Recruit-Api/src/main/java/com/econovation/recruit/api/record/controller/RecordController.java b/server/Recruit-Api/src/main/java/com/econovation/recruit/api/record/controller/RecordController.java index 1253393f..638dae7b 100644 --- a/server/Recruit-Api/src/main/java/com/econovation/recruit/api/record/controller/RecordController.java +++ b/server/Recruit-Api/src/main/java/com/econovation/recruit/api/record/controller/RecordController.java @@ -10,6 +10,7 @@ import com.econovation.recruitdomain.domains.record.domain.Record; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; +import java.util.List; import lombok.RequiredArgsConstructor; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; @@ -41,4 +42,12 @@ public ResponseEntity findByApplicantId(@RequestParam String Record record = recordUseCase.findByApplicantId(applicantId); return new ResponseEntity(RecordResponseDto.from(record), HttpStatus.OK); } + + @Operation(summary = "지원자의 면접기록을 전부 조회합니다") + @ApiErrorExceptionsExample(RecordExceptionDocs.class) + @GetMapping("/records/all") + public ResponseEntity> findAll() { + List records = recordUseCase.findAll(); + return new ResponseEntity(RecordResponseDto.from(records), HttpStatus.OK); + } } diff --git a/server/Recruit-Domain/src/main/java/com/econovation/recruitdomain/domains/dto/RecordResponseDto.java b/server/Recruit-Domain/src/main/java/com/econovation/recruitdomain/domains/dto/RecordResponseDto.java index c5f814ee..d76ae974 100644 --- a/server/Recruit-Domain/src/main/java/com/econovation/recruitdomain/domains/dto/RecordResponseDto.java +++ b/server/Recruit-Domain/src/main/java/com/econovation/recruitdomain/domains/dto/RecordResponseDto.java @@ -1,6 +1,8 @@ package com.econovation.recruitdomain.domains.dto; import com.econovation.recruitdomain.domains.record.domain.Record; +import java.util.List; +import java.util.stream.Collectors; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; @@ -15,4 +17,8 @@ public class RecordResponseDto { public static RecordResponseDto from(Record record) { return RecordResponseDto.builder().url(record.getUrl()).record(record.getRecord()).build(); } + + public static List from(List records) { + return records.stream().map(RecordResponseDto::from).collect(Collectors.toList()); + } }