Skip to content

Refactor : 인기글 조회 API 리팩토링#79

Merged
jeong724 merged 5 commits intodevelopfrom
refactor/#76
Jan 14, 2025
Merged

Refactor : 인기글 조회 API 리팩토링#79
jeong724 merged 5 commits intodevelopfrom
refactor/#76

Conversation

@jeong724
Copy link
Collaborator

✒️ 관련 이슈번호

🔑 Key Changes

  1. 내용
    • 기존에 있던 PopularPost 엔티티를 삭제하고 좋아요/북마크 엔티티인 PostLike 엔티티에서 좋아요가 많은 상위 3개의 데이터를 가져오는 방식으로 바꿨습니다
    • created_date 칼럼을 추가해 좋아요 누른 날짜를 받도록 추가
    • 좋아요/북마크 엔티티에서 created_date를 이용해 전날까지 좋아요 합을 필터링해 이중에서 상위 3개를 가져오도록함

📸 Screenshot

스크린샷 2025-01-14 오후 5 05 13

@jeong724 jeong724 added the 🔨Refactor 코드 리펙토링 (기능 변경 없이 코드만 수정할 때) label Jan 14, 2025
@jeong724 jeong724 self-assigned this Jan 14, 2025
@jeong724 jeong724 merged commit 34093c8 into develop Jan 14, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨Refactor 코드 리펙토링 (기능 변경 없이 코드만 수정할 때)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REFACTOR] : 인기글 조회 API 리팩토링

1 participant