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

[review] LIKE(좋아요) 테이블 구현 #40

Open
2 tasks
kimaj2001 opened this issue Jul 5, 2023 · 0 comments
Open
2 tasks

[review] LIKE(좋아요) 테이블 구현 #40

kimaj2001 opened this issue Jul 5, 2023 · 0 comments

Comments

@kimaj2001
Copy link
Contributor

kimaj2001 commented Jul 5, 2023

연관관계

Review와 좋아요는 1:N 관계
Member와 좋아요는 1:N 관계

Parameter

review-id 를 파라미터로 전달받는다.
" localhost:8080/review/{review-id}/likes"

  • LIKE 엔티티의 필드는 id, review-id, member-id
  • 이미 좋아요를 한 리뷰에 다시 좋아요를 누르면 삭제
@kimaj2001 kimaj2001 added this to the 리뷰 CRUD milestone Jul 5, 2023
@kimaj2001 kimaj2001 self-assigned this Jul 5, 2023
kimaj2001 added a commit that referenced this issue Jul 13, 2023
Like 테이블 생성.
ReviewDto.Response 에 Like Count 포함하게 변경
- 추가해야 하는 설정들
Member 와 연관관계 설정
동일한 유저가 누르면 좋아요 delete true로 변경
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant