Skip to content

Commit

Permalink
Merge pull request #108 from Att-ies/Fix/107-add-list-id
Browse files Browse the repository at this point in the history
fix: 목록 id 추가
  • Loading branch information
ChooSeoyeon authored Jan 19, 2023
2 parents ffb9b45 + 51ed8c2 commit 919fce3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ public List<PreferredArtistResponse> getPreferredArtistList(Long loginMemberId)
List<Member> findPreferredArtistList = memberPreferredArtistRepository.findPreferredArtist(loginMemberId);

List<PreferredArtistResponse> preferredArtistResponse = findPreferredArtistList.stream()
.map(m -> new PreferredArtistResponse(m.getNickname(), m.getEducation(), processImage(m.getImage())))
.map(m -> new PreferredArtistResponse(m.getId(), m.getNickname(), m.getEducation(), processImage(m.getImage())))
.collect(Collectors.toList());

return preferredArtistResponse;
Expand Down Expand Up @@ -611,7 +611,7 @@ public List<CustomizedArtWorkResponse> getCustomizedArtWorkList (Long loginMembe
List<ArtWork> findCustomizedArtWorkList = memberRepository.findCustomizedArtWork(findMemberKeywordIdList, page, limit); // 콜렉터 취향과 일치하는 keywordId 개수에 따라 작품 나열해 반환

List<CustomizedArtWorkResponse> customizedArtWorkResponse = findCustomizedArtWorkList.stream()
.map(m -> new CustomizedArtWorkResponse(m.getTitle(), m.getMember().getEducation(), processImage(m.getMainImage())))
.map(m -> new CustomizedArtWorkResponse(m.getId(), m.getTitle(), m.getMember().getEducation(), processImage(m.getMainImage())))
.collect(Collectors.toList());

return customizedArtWorkResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
@Builder
public class CustomizedArtWorkResponse {

private Long id;
private String title;
private String education;
private String image;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
@Builder
public class PreferredArtistResponse {

private Long id;
private String nickname;
private String education;
private String image;
Expand Down

0 comments on commit 919fce3

Please sign in to comment.