Skip to content

Commit

Permalink
[BE-63] applicants 지원서 제출 응답값 return type to id #178
Browse files Browse the repository at this point in the history
[BE-63] applicants 지원서 제출 응답값 return type to id #178
  • Loading branch information
BlackBean99 authored Feb 29, 2024
2 parents 01eac27 + 7435c19 commit 6a999e6
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
Binary file modified server/.gradle/7.6.1/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified server/.gradle/7.6.1/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified server/.gradle/7.6.1/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified server/.gradle/7.6.1/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified server/.gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import com.econovation.recruit.api.applicant.usecase.ApplicantQueryUseCase;
import com.econovation.recruit.api.applicant.usecase.TimeTableLoadUseCase;
import com.econovation.recruit.api.applicant.usecase.TimeTableRegisterUseCase;
import com.econovation.recruit.utils.sort.SortHelper;
import com.econovation.recruitcommon.annotation.ApiErrorExceptionsExample;
import com.econovation.recruitcommon.annotation.TimeTrace;
import com.econovation.recruitcommon.annotation.XssProtected;
Expand Down Expand Up @@ -45,12 +44,12 @@
@Slf4j
@Tag(name = "[1.0]. 지원서 API", description = "지원서 관련 API")
public class ApplicantController {

private final TimeTableRegisterUseCase timeTableRegisterUseCase;
private final TimeTableLoadUseCase timeTableLoadUseCase;
private final ApplicantQueryUseCase applicantQueryUseCase;
private final CommonsEmailSender commonsEmailSender;
private final CommandGateway commandGateway;
private final SortHelper<Map<String, Object>> sortHelper;

@Value("${econovation.year}")
private Integer year;
Expand All @@ -62,8 +61,9 @@ public class ApplicantController {
@TimeTrace
public ResponseEntity registerMongoApplicant(@RequestBody Map<String, Object> qna) {
// validateOutdated();
commandGateway.send(new CreateAnswerCommand(UUID.randomUUID().toString(), year, qna));
return new ResponseEntity<>(APPLICANT_SUCCESS_REGISTER_MESSAGE, HttpStatus.OK);
String applicantId = UUID.randomUUID().toString();
commandGateway.send(new CreateAnswerCommand(applicantId, year, qna));
return new ResponseEntity<>(applicantId, HttpStatus.OK);
}

@Operation(summary = "지원자 id로 지원서를 조회합니다.")
Expand Down

0 comments on commit 6a999e6

Please sign in to comment.