From 5d16cda5404a9ad730faffd392620099dbd61d81 Mon Sep 17 00:00:00 2001 From: Seokjin Jeon Date: Wed, 17 Apr 2024 23:28:21 +0900 Subject: [PATCH] =?UTF-8?q?[BE]=20fix:=20ArtistBookmarkInfoV1Response?= =?UTF-8?q?=EC=97=90=20=EC=95=84=ED=8B=B0=EC=8A=A4=ED=8A=B8=20=EC=8B=9D?= =?UTF-8?q?=EB=B3=84=EC=9E=90=20=EC=B6=94=EA=B0=80=20(#869)=20(#872)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 누락된 아티스트 식별자 추가 * chore: memberid -> memberId 수정 --- .../bookmark/application/ArtistBookmarkV1QueryService.java | 4 ++-- .../festago/bookmark/dto/v1/ArtistBookmarkInfoV1Response.java | 1 + .../repository/v1/ArtistBookmarkV1QueryDslRepository.java | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/com/festago/bookmark/application/ArtistBookmarkV1QueryService.java b/backend/src/main/java/com/festago/bookmark/application/ArtistBookmarkV1QueryService.java index 106b62fbb..5b6e01783 100644 --- a/backend/src/main/java/com/festago/bookmark/application/ArtistBookmarkV1QueryService.java +++ b/backend/src/main/java/com/festago/bookmark/application/ArtistBookmarkV1QueryService.java @@ -14,7 +14,7 @@ public class ArtistBookmarkV1QueryService { private final ArtistBookmarkV1QueryDslRepository artistBookmarkV1QueryDslRepository; - public List findArtistBookmarksByMemberId(Long memberid){ - return artistBookmarkV1QueryDslRepository.findByMemberId(memberid); + public List findArtistBookmarksByMemberId(Long memberId){ + return artistBookmarkV1QueryDslRepository.findByMemberId(memberId); } } diff --git a/backend/src/main/java/com/festago/bookmark/dto/v1/ArtistBookmarkInfoV1Response.java b/backend/src/main/java/com/festago/bookmark/dto/v1/ArtistBookmarkInfoV1Response.java index 4f10b8827..80dda8835 100644 --- a/backend/src/main/java/com/festago/bookmark/dto/v1/ArtistBookmarkInfoV1Response.java +++ b/backend/src/main/java/com/festago/bookmark/dto/v1/ArtistBookmarkInfoV1Response.java @@ -3,6 +3,7 @@ import com.querydsl.core.annotations.QueryProjection; public record ArtistBookmarkInfoV1Response( + Long id, String name, String profileImageUrl ) { diff --git a/backend/src/main/java/com/festago/bookmark/repository/v1/ArtistBookmarkV1QueryDslRepository.java b/backend/src/main/java/com/festago/bookmark/repository/v1/ArtistBookmarkV1QueryDslRepository.java index 83d043112..62c64f4a4 100644 --- a/backend/src/main/java/com/festago/bookmark/repository/v1/ArtistBookmarkV1QueryDslRepository.java +++ b/backend/src/main/java/com/festago/bookmark/repository/v1/ArtistBookmarkV1QueryDslRepository.java @@ -23,6 +23,7 @@ public List findByMemberId(Long memberId) { return select( new QArtistBookmarkV1Response( new QArtistBookmarkInfoV1Response( + artist.id, artist.name, artist.profileImage ),