콘텐츠 상세, 팔로잉 리스트, 시리즈 상세 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

@@ -61,7 +61,7 @@ class ContentSeriesService(
throw SodaException("잘못된 시리즈 입니다.\n다시 시도해 주세요")
}
val isFollow = explorerQueryRepository.isFollow(
val creatorFollowing = explorerQueryRepository.getCreatorFollowing(
creatorId = series.member!!.id!!,
memberId = member.id!!
)
@@ -102,7 +102,8 @@ class ContentSeriesService(
creatorId = series.member!!.id!!,
nickname = series.member!!.nickname,
profileImage = "$coverImageHost/${series.member!!.profileImage}",
isFollow = isFollow
isFollow = creatorFollowing?.isFollow ?: false,
isNotice = creatorFollowing?.isNotify ?: false
),
rentalMinPrice = rentalMinPrice,
rentalMaxPrice = rentalMaxPrice,

View File

@@ -27,6 +27,7 @@ data class GetSeriesDetailResponse(
val creatorId: Long,
val nickname: String,
val profileImage: String,
val isFollow: Boolean
val isFollow: Boolean,
val isNotice: Boolean
)
}