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

Feat(#16): 필터 좋아요 기능 추가 #17

Merged
merged 2 commits into from
Aug 2, 2024
Merged

Conversation

tmddus2
Copy link
Collaborator

@tmddus2 tmddus2 commented Aug 2, 2024

작업 사항

  • 좋아요 API 구현
  • 좋아요 취소 API 구현
  • 필터 조회 시 좋아요 여부 값 추가

고민한 점들

어떤 유저가 특정 자원(여기서는 필터)에 대해 좋아요 눌렀는지 확인할 때

  • 필터 조회 시 response 필드 값으로 liked 같은 속성 넣기
  • 좋아요 여부를 조회할 수 있는 다른 API 만들기
    • 이 방식이 조금 더 restful 하나 좋아요 여부를 알기 위해 또 네트워크 통해서 API를 호출해야 하고 비효율적이라고 생각이 들어서 응답 필드에 추가하기로 했다

나중에 조회를 더 효율적으로 할 수 있도록 개선해보면 좋을듯..

[게시판] 게시글 좋아요 / 좋아요 취소
좋아요 기능 구현
🤔 게시물 "좋아요" 여부를 어떻게 설계할까?
Springboot 좋아요 기능을 통해 동시성을 알아보자!

@tmddus2 tmddus2 merged commit 31417fe into main Aug 2, 2024
1 check passed
@tmddus2 tmddus2 self-assigned this Aug 3, 2024
@tmddus2 tmddus2 linked an issue Aug 4, 2024 that may be closed by this pull request
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

좋아요 관련 기능을 추가한다
1 participant