From 79ca09cbbd994f67fd568983ab7618c4ff5bab31 Mon Sep 17 00:00:00 2001 From: BaeJunho Date: Thu, 26 Sep 2024 22:54:29 +0900 Subject: [PATCH 01/25] =?UTF-8?q?[feat]=20=EC=A0=80=EC=9E=A5=EB=90=9C=20?= =?UTF-8?q?=EC=98=81=EC=83=81=EC=9D=84=20=EC=B5=9C=EC=8B=A0=20=EC=88=9C?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EB=B0=9B=EC=95=84=EC=98=A4=EB=8A=94=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 이외 토큰 없이 공통으로 조회 가능한 기능은 추후 구현 예정 --- .../video/application/VideoService.java | 9 ++++++ .../video/persistence/VideoRepository.java | 2 ++ .../video/presentation/VideoController.java | 31 ++++++++++++++++++- 3 files changed, 41 insertions(+), 1 deletion(-) diff --git a/src/main/java/team7/inplace/video/application/VideoService.java b/src/main/java/team7/inplace/video/application/VideoService.java index edfe24f7..f89bfa30 100644 --- a/src/main/java/team7/inplace/video/application/VideoService.java +++ b/src/main/java/team7/inplace/video/application/VideoService.java @@ -1,6 +1,7 @@ package team7.inplace.video.application; import lombok.RequiredArgsConstructor; +import org.springframework.data.domain.Sort; import org.springframework.stereotype.Service; import team7.inplace.influencer.entity.Influencer; import team7.inplace.influencer.repository.InfluencerRepository; @@ -32,6 +33,14 @@ public List findByInfluencer(List influencers) { return videoToInfo(savedVideos); } + public List findAllDESC() { + // id를 기준으로 내림차순 정렬하여 비디오 정보 불러오기 + List