다른 회원 프로필 조회 API

- 닉네임 추가
This commit is contained in:
Klaus 2024-09-07 00:24:47 +09:00
parent e8cb4c6ea2
commit 307eea3ea2
2 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import com.querydsl.core.annotations.QueryProjection
data class GetMemberProfileResponse @QueryProjection constructor(
val memberId: Long,
val nickname: String,
val profileImageUrl: String,
val isBlocked: Boolean
)

View File

@ -428,6 +428,7 @@ class MemberQueryRepositoryImpl(
.select(
QGetMemberProfileResponse(
member.id,
member.nickname,
member.profileImage.prepend("/").prepend(cloudFrontHost),
blockMember.id.isNotNull
)