콘텐츠 상세, 팔로잉 리스트, 시리즈 상세 API
- 알림과 팔로우 상태값 추가
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
package kr.co.vividnext.sodalive.live.recommend
|
||||
|
||||
import com.querydsl.core.annotations.QueryProjection
|
||||
|
||||
data class GetCreatorFollowingAllListResponse(
|
||||
val totalCount: Int,
|
||||
val items: List<GetCreatorFollowingAllListItem>
|
||||
)
|
||||
|
||||
data class GetCreatorFollowingAllListItem(
|
||||
data class GetCreatorFollowingAllListItem @QueryProjection constructor(
|
||||
val creatorId: Long,
|
||||
val nickname: String,
|
||||
val profileImageUrl: String,
|
||||
val isFollow: Boolean
|
||||
val isFollow: Boolean,
|
||||
val isNotify: Boolean
|
||||
)
|
||||
|
@@ -239,12 +239,12 @@ class LiveRecommendRepository(
|
||||
|
||||
return queryFactory
|
||||
.select(
|
||||
Projections.constructor(
|
||||
GetCreatorFollowingAllListItem::class.java,
|
||||
QGetCreatorFollowingAllListItem(
|
||||
member.id,
|
||||
member.nickname,
|
||||
member.profileImage.prepend("/").prepend(cloudFrontHost),
|
||||
Expressions.asBoolean(true)
|
||||
Expressions.asBoolean(true),
|
||||
creatorFollowing.isNotify
|
||||
)
|
||||
)
|
||||
.from(creatorFollowing)
|
||||
|
Reference in New Issue
Block a user