[feat/#343] 좋아요 등록 및 취소 API 구현 #353
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
작업내용
좋아요 등록 및 취소 API 구현
상세설명_ & 캡쳐
복합 키 유니크 제약 조건
좋아요 테이블의 (member_id, shared_note_id) 쌍으로 유니크 제약 조건을 걸어 중복 좋아요를 방지했습니다. 데이터 접근 객체에서 해당 에러 캐치하도록 처리했습니다.
총 좋아요 수 리턴 관련