-
Notifications
You must be signed in to change notification settings - Fork 2
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 수정 #42
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.
수고하셨습니다!
import java.util.Optional; | ||
|
||
public interface MemoirRepository extends JpaRepository<Memoir, Long> { | ||
|
||
Optional<Memoir> findByUserAndDate(User user, LocalDate date); | ||
|
||
List<Memoir> findByUserAndIsBookmarkedOrderByDateDesc(User user, Boolean isBookmarked); | ||
} |
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.
그러게.. 페이징 필요할 거 같아서 수정하고 커밋할게용
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.
@threeony 코드에서는 Handler 만들어서 던지는데 지민님 코드에서는 다른 것 같아요 통일하는게 좋을듯?
Memoir newMemoir = MemoirConverter.toMemoir(request); | ||
Memoir newMemoir = Memoir.builder() | ||
.date(request.getDate()) | ||
.emoticon(emoticonRepository.findById(request.getEmoticonId()).orElseThrow(() -> new GeneralException(ErrorStatus.EMOTICON_NOT_FOUND))) |
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.
여기 Handler call하는거 아니였남?? apiPayload -> handler -> Handler
exception (통일하면 좋을 것 같은데)
PULL REQUEST
🎋 작업중인 브랜치
💡 작업동기
🔑 주요 변경사항
💡 관련 이슈