Skip to content

Commit

Permalink
feat: ReadNewsRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonjy committed May 29, 2024
1 parent e3454a4 commit 7e14537
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.rollthedice.backend.domain.news.repository;

import com.rollthedice.backend.domain.member.entity.Member;
import com.rollthedice.backend.domain.news.entity.ReadNews;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ReadNewsRepository extends JpaRepository<ReadNews, Long> {
List<ReadNews> getTop3ByMemberOrderByCreatedAtDesc(Member member);

}

0 comments on commit 7e14537

Please sign in to comment.