Skip to content
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

단일 ToDo 수정 API 구현 #59

Merged
merged 2 commits into from
Jan 20, 2025
Merged

단일 ToDo 수정 API 구현 #59

merged 2 commits into from
Jan 20, 2025

Conversation

chaaehyun
Copy link
Collaborator

✨ Related Issue

📝 기능 구현 명세

  • 투두 수정 API 구현
  • 투두 생성 시, 반복 관련 옵션 제거
  • 투두 태그 관련 생성, 삭제, 수정 기능 구현

🐥 추가적인 언급 사항

@chaaehyun chaaehyun self-assigned this Jan 20, 2025
@chaaehyun chaaehyun linked an issue Jan 20, 2025 that may be closed by this pull request
1 task
Copy link
Collaborator

@paragon0107 paragon0107 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다 리뷰단거 고치고 머지하면 될 것 같습니당

@Override
public ToDo update(final ToDo toDo){
ToDoEntity toDoEntity = toDoJpaRepository.save(ToDoEntity.withId(toDo));
toDoEntity.update(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

서비스에서 업데이트 되어 어댑터로 전달되었으니 추가적인 업데이트는 없어도 될 듯 합니다

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

최종적으로 엔티티도 업데이트 된 값들이 저장 되어야 된다고 생각해서 엔티티 수정하는 로직을 추가했습니다!

@Override
public ToDoTag update(final ToDoTag toDoTag) {
ToDoTagEntity toDoTagEntity = toDoTagJpaRepository.save(ToDoTagEntity.withId(toDoTag));
toDoTagEntity.updateTag(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

투두어댑터에서 단 리뷰내용과 동일합니다

@chaaehyun chaaehyun merged commit 3206981 into develop Jan 20, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: 단일 투두 수정 API
2 participants