-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Feature] 공지사항 상세조회 기능 구현 #73
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.
승인합니다. 이후 리팩토링 진행하시죠
|
||
NoticeGetResponseDto response = NoticeGetResponseDto.from(notice); | ||
return response; | ||
} |
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.
공지사항 상세 조회에서 이전글이랑 다음글의 카테고리, 제목, 날짜 불러와야 해서 그 부분 수정하고 Dto 새로 만들어야 할 듯합니다.
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.
넵
@Query("SELECT n FROM Notice n WHERE n.id < :noticeId ORDER BY n.id DESC LIMIT 1") | ||
Notice findPreviousNotice(@Param("noticeId") Long noticeId); | ||
@Query("SELECT n FROM Notice n WHERE n.id > :noticeId ORDER BY n.id LIMIT 1") | ||
Notice findNextNotice(@Param("noticeId") Long noticeId); |
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.
오 바꿨네 좋아좋아 굿
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.
굿 굿
💡 연관된 이슈
close #72
📝 작업 내용
공지사항 상세조회 기능 구현
💬 리뷰 요구 사항