Skip to content

Commit

Permalink
Merge pull request #651 from tukcomCD2024/fix/friend_tag-B-core-#650
Browse files Browse the repository at this point in the history
fix : 응답에 친구 태그 추가 #650
  • Loading branch information
seokho-1116 authored Aug 22, 2024
2 parents fb3b3b3 + 8d518bd commit 5ae9518
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 @@ -6,6 +6,7 @@
@Builder
public record SearchFriendSummaryDtoByTag(
Long id,
String tag,
String profileUrl,
String nickname,
Boolean isFriend,
Expand All @@ -16,6 +17,7 @@ public record SearchFriendSummaryDtoByTag(
public SearchTagFriendSummaryResponse toResponse() {
return SearchTagFriendSummaryResponse.builder()
.id(id)
.tag(tag)
.profileUrl(profileUrl)
.nickname(nickname)
.isFriend(isFriend)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ public record SearchTagFriendSummaryResponse(
@Schema(description = "검색된 사용자 아이디")
Long id,

@Schema(description = "사용자 태그")
String tag,

@Schema(description = "검색된 사용자 프로필")
String profileUrl,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public Optional<SearchFriendSummaryDtoByTag> findFriendsByTag(
Projections.constructor(
SearchFriendSummaryDtoByTag.class,
member.id,
member.tag,
member.profileUrl,
member.nickname,
memberFriend.id.isNotNull(),
Expand Down

0 comments on commit 5ae9518

Please sign in to comment.