-
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
[FEAT] 플레이그라운드 채용정보 조회 기능 API - #436 #443
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.
고생하셨습니다!
@GetMapping("/employments") | ||
public ResponseEntity<List<EmploymentPostResponse>> getEmploymentPosts( | ||
@AuthenticationPrincipal User user | ||
) { |
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.
P2. Size는 유동적으로 변할 수 있도록 파라미터로 받는 것이 좋을 것 같은데 어떻게 생각하시나요?
.map(post -> EmploymentPostResponse.builder() | ||
.id(post.id()) | ||
.categoryName(post.categoryName()) | ||
.title(post.title()) | ||
.content(post.content()) | ||
.images(post.images()) | ||
.build()) |
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.
P3. EmploymentPostResponse에 PostInfo 메서드를 전달하면 EmploymentPostResponse에 맞는 객체를 전달해주는 of 메서드가 있다면 가독성이 더 좋아질 것 같아요!
📝 PR Summary
🌴 Works
🌱 Related Issue
closed #436
🌵 PR 참고사항