크리에이터 내 채널 - 팔로워 리스트

- 알림설정 여부 추가
This commit is contained in:
Klaus 2024-09-20 01:10:29 +09:00
parent 2c4c19990a
commit 0c153aeb6a
2 changed files with 9 additions and 4 deletions

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?
) )