[Feat] 모의 서류 지원 생성 API 구현 (#38)#43
Merged
Merged
Conversation
- 실제 공고 기반 ACTUAL 타입 MockApply 생성 API 추가 - 소분류 기반 가상 JobPosting 및 MOCK 타입 MockApply 생성 API 추가 - MockApply 생성 응답에 jobPostingId, mockApplyId, applyType 반환 - 인증 사용자 기준으로 MockApply 생성 로직 적용 - 존재하지 않는 공고 및 소분류 예외 처리 추가 - MockApply 생성 API Swagger 문서화 - 실제/가상 공고 기반 MockApply 생성 서비스 테스트 추가
shinae1023
reviewed
May 13, 2026
| } | ||
|
|
||
| @Transactional | ||
| public MockApplyCreateResponse createMockApply(User user, MockApplyCreateMockRequest request) { |
Member
There was a problem hiding this comment.
근데 mockApply 생성할 때 기본적으로 회사 + 직무를 고르고 들어가는거니까 그 회사 id를 받아와야할듯 이걸 하드코딩으로 박아두면 안될거 같음
글고 이거 공고 생성 자체를 rag기반 llm요청이니까 그부분 아직 구현 안됐으니 그냥껍데기로 하고 flow 맞춰주세요
| return MockApplyCreateResponse.from(mockApplyRepository.save(mockApply)); | ||
| } | ||
|
|
||
| private String resolveTask(String task, DetailClassification detailClassification) { |
Member
There was a problem hiding this comment.
이건 왜 이렇게 하는건가요?
무슨 역할이죠?
~~를 우대합니다 ~~ 수행합니다 식으로 굳이 우리가 맞출 필요없이 해당 사항만 넘겨주면
알아서 프론트에서 줄바꿈 해줄거 같은데
| ); | ||
| } | ||
|
|
||
| private User getCurrentUser(UserDetailsImpl userDetails) { |
Member
There was a problem hiding this comment.
userDetails가 없는 경우는 스프링 시큐리티의 AuthenticationEntryPoint에서 이미 AUTH_4011로 처리하고 있어서 컨트롤러에서 동일한 null 검증을 한 번 더 할 필요는 없고 여기서는 바로 userDetails.getUser()를 사용해도 될 것 같아요
Collaborator
Author
|
@shinae1023
|
This was referenced May 13, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ 어떤 이유로 PR를 하셨나요?
📋 세부 내용 - 왜 해당 PR이 필요한지 작업 내용을 자세하게 설명해주세요
📸 작업 화면 스크린샷
🚨 관련 이슈 번호 [#38 ]