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

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

View File

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