test #214
|
@ -450,8 +450,10 @@ class AudioContentService(
|
||||||
val creator = explorerQueryRepository.getMember(creatorId)
|
val creator = explorerQueryRepository.getMember(creatorId)
|
||||||
?: throw SodaException("없는 사용자 입니다.")
|
?: throw SodaException("없는 사용자 입니다.")
|
||||||
|
|
||||||
val notificationUserIds = explorerQueryRepository.getNotificationUserIds(creatorId)
|
val creatorFollowing = explorerQueryRepository.getCreatorFollowing(
|
||||||
val isFollowing = notificationUserIds.contains(member.id)
|
creatorId = creatorId,
|
||||||
|
memberId = member.id!!
|
||||||
|
)
|
||||||
|
|
||||||
// 구매 여부 확인
|
// 구매 여부 확인
|
||||||
val isExistsBundleAudioContent = bundleAudioContentList
|
val isExistsBundleAudioContent = bundleAudioContentList
|
||||||
|
@ -640,7 +642,9 @@ class AudioContentService(
|
||||||
} else {
|
} else {
|
||||||
"$coverImageHost/profile/default-profile.png"
|
"$coverImageHost/profile/default-profile.png"
|
||||||
},
|
},
|
||||||
isFollowing = isFollowing
|
isFollowing = creatorFollowing?.isFollow ?: false,
|
||||||
|
isFollow = creatorFollowing?.isFollow ?: false,
|
||||||
|
isNotify = creatorFollowing?.isNotify ?: false
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,5 +47,7 @@ data class AudioContentCreator(
|
||||||
val creatorId: Long,
|
val creatorId: Long,
|
||||||
val nickname: String,
|
val nickname: String,
|
||||||
val profileImageUrl: String,
|
val profileImageUrl: String,
|
||||||
val isFollowing: Boolean
|
val isFollowing: Boolean,
|
||||||
|
val isFollow: Boolean,
|
||||||
|
val isNotify: Boolean
|
||||||
)
|
)
|
||||||
|
|
|
@ -61,7 +61,7 @@ class ContentSeriesService(
|
||||||
throw SodaException("잘못된 시리즈 입니다.\n다시 시도해 주세요")
|
throw SodaException("잘못된 시리즈 입니다.\n다시 시도해 주세요")
|
||||||
}
|
}
|
||||||
|
|
||||||
val isFollow = explorerQueryRepository.isFollow(
|
val creatorFollowing = explorerQueryRepository.getCreatorFollowing(
|
||||||
creatorId = series.member!!.id!!,
|
creatorId = series.member!!.id!!,
|
||||||
memberId = member.id!!
|
memberId = member.id!!
|
||||||
)
|
)
|
||||||
|
@ -102,7 +102,8 @@ class ContentSeriesService(
|
||||||
creatorId = series.member!!.id!!,
|
creatorId = series.member!!.id!!,
|
||||||
nickname = series.member!!.nickname,
|
nickname = series.member!!.nickname,
|
||||||
profileImage = "$coverImageHost/${series.member!!.profileImage}",
|
profileImage = "$coverImageHost/${series.member!!.profileImage}",
|
||||||
isFollow = isFollow
|
isFollow = creatorFollowing?.isFollow ?: false,
|
||||||
|
isNotice = creatorFollowing?.isNotify ?: false
|
||||||
),
|
),
|
||||||
rentalMinPrice = rentalMinPrice,
|
rentalMinPrice = rentalMinPrice,
|
||||||
rentalMaxPrice = rentalMaxPrice,
|
rentalMaxPrice = rentalMaxPrice,
|
||||||
|
|
|
@ -27,6 +27,7 @@ data class GetSeriesDetailResponse(
|
||||||
val creatorId: Long,
|
val creatorId: Long,
|
||||||
val nickname: String,
|
val nickname: String,
|
||||||
val profileImage: String,
|
val profileImage: String,
|
||||||
val isFollow: Boolean
|
val isFollow: Boolean,
|
||||||
|
val isNotice: Boolean
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,16 @@
|
||||||
package kr.co.vividnext.sodalive.live.recommend
|
package kr.co.vividnext.sodalive.live.recommend
|
||||||
|
|
||||||
|
import com.querydsl.core.annotations.QueryProjection
|
||||||
|
|
||||||
data class GetCreatorFollowingAllListResponse(
|
data class GetCreatorFollowingAllListResponse(
|
||||||
val totalCount: Int,
|
val totalCount: Int,
|
||||||
val items: List<GetCreatorFollowingAllListItem>
|
val items: List<GetCreatorFollowingAllListItem>
|
||||||
)
|
)
|
||||||
|
|
||||||
data class GetCreatorFollowingAllListItem(
|
data class GetCreatorFollowingAllListItem @QueryProjection constructor(
|
||||||
val creatorId: Long,
|
val creatorId: Long,
|
||||||
val nickname: String,
|
val nickname: String,
|
||||||
val profileImageUrl: String,
|
val profileImageUrl: String,
|
||||||
val isFollow: Boolean
|
val isFollow: Boolean,
|
||||||
|
val isNotify: Boolean
|
||||||
)
|
)
|
||||||
|
|
|
@ -239,12 +239,12 @@ class LiveRecommendRepository(
|
||||||
|
|
||||||
return queryFactory
|
return queryFactory
|
||||||
.select(
|
.select(
|
||||||
Projections.constructor(
|
QGetCreatorFollowingAllListItem(
|
||||||
GetCreatorFollowingAllListItem::class.java,
|
|
||||||
member.id,
|
member.id,
|
||||||
member.nickname,
|
member.nickname,
|
||||||
member.profileImage.prepend("/").prepend(cloudFrontHost),
|
member.profileImage.prepend("/").prepend(cloudFrontHost),
|
||||||
Expressions.asBoolean(true)
|
Expressions.asBoolean(true),
|
||||||
|
creatorFollowing.isNotify
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.from(creatorFollowing)
|
.from(creatorFollowing)
|
||||||
|
|
Loading…
Reference in New Issue