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 content; + private Long userId; // 유저 아이디 private int currentPage; //현재 페이지 번호 private int pageSize; //페이지 크기 private int totalNumber; //전체 메이크업 개수