Skip to content

[Backend] 좋아요 수 및 좋아요순 정렬 구현 #25

Description

@HyeYeonLee0112

목적

게시글 목록/상세 응답에 좋아요 수를 포함하고 좋아요순 정렬을 지원한다.

작업 내용

  • 게시글 응답에 like_count를 포함한다.
  • 현재 사용자의 liked_by_me 값을 계산한다.
  • GET /posts?sort=likes 정렬을 구현한다.
  • 기본 최신순 정렬과 좋아요순 정렬을 구분한다.

완료 기준

  • 게시글 목록에서 좋아요 수를 확인할 수 있다.
  • 게시글 상세에서 좋아요 상태를 확인할 수 있다.
  • 좋아요순 게시글 목록을 조회할 수 있다.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:backendBackend API and server-side workenhancementNew feature or requestfeature:likeLike and sorting features

Type

No type

Fields

Priority

None yet

Start date

Jun 12, 2026

Target date

Jun 12, 2026

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions