-
Notifications
You must be signed in to change notification settings - Fork 0
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
#233 [fix] 지원서 다운로드 URL 생성 API 수정 #244
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굳굳 수고하셨습니다~~!!
저는 원래.. 어제 오늘 작업 하려고 했는데 게으른 벼락치기생.....은 담주 화요일에 시험 끝나는데로 바로 다 끝낼께여... 제송함다..꾸벅꾸벅.. 흑흑....
@ApiResponse(responseCode = "404", description = "해당 지원서는 존재하지 않습니다.", content = @Content(schema = @Schema(implementation = ErrorResponse.class))), | ||
@ApiResponse(responseCode = "500", description = "서버 내부 오류 입니다.", content = @Content(schema = @Schema(implementation = ErrorResponse.class))), | ||
}) | ||
@GetMapping("/{applicationId}/download-url") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
기존 post -> get 으로 변경 확인했습니다!
@Parameter(hidden = true) @UserId final Long modelId, | ||
@PathVariable final Long applicationId | ||
) { | ||
return SuccessResponse.success(GET_PRE_SIGNED_URL_SUCCESS, hairModelApplicationRetrieveService.getApplicationCaptureDownloadUrl(applicationId)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이부분에서 "디자이너 제안 상세보기 API에서 주는 applicationId를 사용해야 함" --> 해당 service 불러오기 확인했습니다!
public DownloadUrlResponseDto getApplicationCaptureDownloadUrl(final Long applicationId) { | ||
final HairModelApplication hairModelApplication = hairModelApplicationJpaRepository.findById(applicationId) | ||
.orElseThrow(() -> new NotFoundException(ErrorCode.NOT_FOUND_APPLICATION_EXCEPTION)); | ||
final String applicationDownloadUrl = s3Service.getPreSignedUrlToDownload(hairModelApplication.getApplicationCaptureUrl()); | ||
return new DownloadUrlResponseDto(applicationDownloadUrl); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
해당 지원서 아이디로 지원서 정보 조회하고 url정보 가져오는것 확인했습니다!
…into feat/#233 # Conflicts: # src/main/java/com/moddy/server/controller/application/ApplicationRetrieveController.java # src/main/java/com/moddy/server/controller/designer/DesignerRegisterController.java # src/main/java/com/moddy/server/service/application/HairModelApplicationRetrieveService.java
관련 이슈번호
해결하는 데 얼마나 걸렸나요? (예상 작업 시간 / 실제 작업 시간)
해결하려는 문제가 무엇인가요?
어떻게 해결했나요?