From 2a62954d19f823b25f0772f8e2a31a7499294553 Mon Sep 17 00:00:00 2001 From: yeopyeop-82 <a01055143647@gmail.com> Date: Sun, 18 Feb 2024 11:25:10 +0900 Subject: [PATCH] =?UTF-8?q?add=20:=20=ED=8F=AC=ED=8A=B8=ED=8F=B4=EB=A6=AC?= =?UTF-8?q?=EC=98=A4=20=EC=A1=B0=ED=9A=8C=EC=8B=9C,=20userId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shop/domain/portfolio/dto/response/PortfolioDetailDto.java | 3 +++ .../meme/shop/domain/portfolio/dto/response/PortfolioDto.java | 2 ++ .../shop/domain/portfolio/dto/response/PortfolioPageDto.java | 1 + 3 files changed, 6 insertions(+) diff --git a/src/main/java/umc/meme/shop/domain/portfolio/dto/response/PortfolioDetailDto.java b/src/main/java/umc/meme/shop/domain/portfolio/dto/response/PortfolioDetailDto.java index 31fafa6..cd0353d 100644 --- a/src/main/java/umc/meme/shop/domain/portfolio/dto/response/PortfolioDetailDto.java +++ b/src/main/java/umc/meme/shop/domain/portfolio/dto/response/PortfolioDetailDto.java @@ -19,6 +19,8 @@ public class PortfolioDetailDto { private Long portfolioId; + private Long userId; + private Boolean isFavorite; private Category category; @@ -58,6 +60,7 @@ public static PortfolioDetailDto from(Portfolio portfolio, boolean isFavorite) { return PortfolioDetailDto.builder() .portfolioId(portfolio.getPortfolioId()) + .userId(portfolio.getArtist().getUserId()) .isFavorite(isFavorite) .category(portfolio.getCategory()) .artistProfileImg(artist.getProfileImg()) diff --git a/src/main/java/umc/meme/shop/domain/portfolio/dto/response/PortfolioDto.java b/src/main/java/umc/meme/shop/domain/portfolio/dto/response/PortfolioDto.java index 77896d4..9a06701 100644 --- a/src/main/java/umc/meme/shop/domain/portfolio/dto/response/PortfolioDto.java +++ b/src/main/java/umc/meme/shop/domain/portfolio/dto/response/PortfolioDto.java @@ -23,6 +23,7 @@ public class PortfolioDto { private Category category; private String artistNickName; + private Long userId; private String makeupName; @@ -54,6 +55,7 @@ public static PortfolioDto from(Portfolio portfolio) { return PortfolioDto.builder() .portfolioId(portfolio.getPortfolioId()) + .userId(portfolio.getArtist().getUserId()) .category(portfolio.getCategory()) .artistNickName(artist.getNickname()) .makeupName(portfolio.getMakeupName()) diff --git a/src/main/java/umc/meme/shop/domain/portfolio/dto/response/PortfolioPageDto.java b/src/main/java/umc/meme/shop/domain/portfolio/dto/response/PortfolioPageDto.java index be6d876..fe41af0 100644 --- a/src/main/java/umc/meme/shop/domain/portfolio/dto/response/PortfolioPageDto.java +++ b/src/main/java/umc/meme/shop/domain/portfolio/dto/response/PortfolioPageDto.java @@ -17,6 +17,7 @@ @Builder public class PortfolioPageDto { private List<PortfolioDto> content; + private Long userId; // 유저 아이디 private int currentPage; //현재 페이지 번호 private int pageSize; //페이지 크기 private int totalNumber; //전체 메이크업 개수