Skip to content

[Feat] 추천 코스 수정, 삭제 API 구현#63

Merged
yangjiae12 merged 6 commits into
developfrom
feat/52-course-update-delete
Jul 17, 2026
Merged

[Feat] 추천 코스 수정, 삭제 API 구현#63
yangjiae12 merged 6 commits into
developfrom
feat/52-course-update-delete

Conversation

@yangjiae12

@yangjiae12 yangjiae12 commented Jul 16, 2026

Copy link
Copy Markdown
Member

📌 PR 설명

  • 추천 코스 수정 API를 구현했습니다.
  • 추천 코스 삭제 API를 구현했습니다.
  • 추천 코스 삭제는 Soft Delete 방식으로 구현했습니다.
  • 추천 코스 등록 API에 누락되어 있던 month_start, month_end 필드를 추가하고 관련 로직을 반영했습니다.

🔗 연관된 이슈

Resolves: #52

📝 리뷰 요구사항

  • 추천 코스 수정 시 연관 엔티티(CourseItem, CourseHashtag) 갱신 방식이 적절한지 확인 부탁드립니다.

💻 테스트 결과

  • API 테스트 완료
  • 정상 동작 확인
추천 코스 수정 성공 응답 추천 코스 없을 때
image image
추천 코스 삭제 성공 응답 추천 코스 없을 때
image image
  • NO_CONTENT 코드를 제거할 예정이라 OK 코드 사용하였습니다

@yangjiae12 yangjiae12 linked an issue Jul 16, 2026 that may be closed by this pull request
2 tasks
@yangjiae12 yangjiae12 changed the title Feat/52 course update delete [Feat] 추천 코스 수정, 삭제 API 구현 Jul 16, 2026
@yangjiae12 yangjiae12 self-assigned this Jul 16, 2026

@chans20 chans20 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

하신것처럼 CourseItem과 CourseHashtag를 개별 수정하기보다 전체 삭제 후 새 목록으로 교체하는 방식이 더 단순하고 명확해서 좋은것같습니다!

message = "해시태그는 5개 이하로 선택할 수 있습니다."
)
List<@NotNull(message = "유효하지 않은 해시태그입니다.") Long> hashtagIds,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

등록 요청에서는 해시태그를 최소 1개 이상 선택하도록 검증하고있어서,
수정 dto에도 min = 1 를 적용하는게 좋을것같습니다.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

해시태그를 전달하지 않으면 해시태그는 수정하지 않는 걸로 하였기 때문에 최소 개수를 검증하지 않고 최대 개수만 검증하도록 했습니다. 확인부탁드립니다!

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

넵 확인했습니다 수고하셨습니다!

@yangjiae12
yangjiae12 merged commit 50bcef5 into develop Jul 17, 2026
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