Skip to content

Commit

Permalink
add : 포트폴리오 조회시, userId
Browse files Browse the repository at this point in the history
  • Loading branch information
yeopyeop-82 committed Feb 18, 2024
1 parent f64bb8c commit 2a62954
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
public class PortfolioDetailDto {
private Long portfolioId;

private Long userId;

private Boolean isFavorite;

private Category category;
Expand Down Expand Up @@ -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())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class PortfolioDto {
private Category category;

private String artistNickName;
private Long userId;

private String makeupName;

Expand Down Expand Up @@ -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())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
@Builder
public class PortfolioPageDto {
private List<PortfolioDto> content;
private Long userId; // 유저 아이디
private int currentPage; //현재 페이지 번호
private int pageSize; //페이지 크기
private int totalNumber; //전체 메이크업 개수
Expand Down

0 comments on commit 2a62954

Please sign in to comment.