test #214

Merged
klaus merged 13 commits from test into main 2024-09-23 06:24:12 +00:00
2 changed files with 9 additions and 4 deletions
Showing only changes of commit 0c153aeb6a - Show all commits

View File

@ -307,8 +307,11 @@ class ExplorerService(
val followerList = queryRepository.getFollowerList(creatorId, pageable.offset, pageable.pageSize.toLong()) val followerList = queryRepository.getFollowerList(creatorId, pageable.offset, pageable.pageSize.toLong())
.map { .map {
val isFollow = if (it.role == MemberRole.CREATOR) { val creatorFollowing = if (it.role == MemberRole.CREATOR) {
queryRepository.isFollow(creatorId = it.userId, memberId = member.id!!) queryRepository.getCreatorFollowing(
creatorId = it.userId,
memberId = member.id!!
)
} else { } else {
null null
} }
@ -317,7 +320,8 @@ class ExplorerService(
userId = it.userId, userId = it.userId,
profileImage = it.profileImage, profileImage = it.profileImage,
nickname = it.nickname, nickname = it.nickname,
isFollow = isFollow isFollow = creatorFollowing?.isFollow ?: false,
isNotify = creatorFollowing?.isNotify ?: false
) )
} }

View File

@ -9,5 +9,6 @@ data class GetFollowerListResponseItem(
val userId: Long, val userId: Long,
val profileImage: String, val profileImage: String,
val nickname: String, val nickname: String,
val isFollow: Boolean? val isFollow: Boolean?,
val isNotify: Boolean?
) )