콘텐츠 상세, 팔로잉 리스트, 시리즈 상세 API

- 알림과 팔로우 상태값 추가
This commit is contained in:
2024-09-13 19:24:40 +09:00
parent 20938e7d43
commit fd3d596d57
6 changed files with 23 additions and 12 deletions

View File

@@ -450,8 +450,10 @@ class AudioContentService(
val creator = explorerQueryRepository.getMember(creatorId)
?: throw SodaException("없는 사용자 입니다.")
val notificationUserIds = explorerQueryRepository.getNotificationUserIds(creatorId)
val isFollowing = notificationUserIds.contains(member.id)
val creatorFollowing = explorerQueryRepository.getCreatorFollowing(
creatorId = creatorId,
memberId = member.id!!
)
// 구매 여부 확인
val isExistsBundleAudioContent = bundleAudioContentList
@@ -640,7 +642,9 @@ class AudioContentService(
} else {
"$coverImageHost/profile/default-profile.png"
},
isFollowing = isFollowing
isFollowing = creatorFollowing?.isFollow ?: false,
isFollow = creatorFollowing?.isFollow ?: false,
isNotify = creatorFollowing?.isNotify ?: false
)
)
}