test #333
| @@ -55,7 +55,7 @@ class LiveApiService( | |||||||
|         val latestFinishedLiveList = liveService.getLatestFinishedLive(member) |         val latestFinishedLiveList = liveService.getLatestFinishedLive(member) | ||||||
|             .map { |             .map { | ||||||
|                 if (memberId != null) { |                 if (memberId != null) { | ||||||
|                     it.isFollowing = explorerQueryRepository.getCreatorFollowing( |                     it.following = explorerQueryRepository.getCreatorFollowing( | ||||||
|                         creatorId = it.memberId, |                         creatorId = it.memberId, | ||||||
|                         memberId = memberId |                         memberId = memberId | ||||||
|                     )?.isFollow ?: false |                     )?.isFollow ?: false | ||||||
|   | |||||||
| @@ -9,5 +9,5 @@ data class AudioContentMainItem @QueryProjection constructor( | |||||||
|     @JsonProperty("title") val title: String, |     @JsonProperty("title") val title: String, | ||||||
|     @JsonProperty("coverImageUrl") val coverImageUrl: String, |     @JsonProperty("coverImageUrl") val coverImageUrl: String, | ||||||
|     @JsonProperty("creatorNickname") val creatorNickname: String, |     @JsonProperty("creatorNickname") val creatorNickname: String, | ||||||
|     @JsonProperty("isPointAvailable") val isPointAvailable: Boolean |     @get:JsonProperty("isPointAvailable") val isPointAvailable: Boolean | ||||||
| ) | ) | ||||||
|   | |||||||
| @@ -1,23 +1,24 @@ | |||||||
| package kr.co.vividnext.sodalive.explorer.profile.creatorCommunity | package kr.co.vividnext.sodalive.explorer.profile.creatorCommunity | ||||||
|  |  | ||||||
|  | import com.fasterxml.jackson.annotation.JsonProperty | ||||||
| import com.querydsl.core.annotations.QueryProjection | import com.querydsl.core.annotations.QueryProjection | ||||||
| import kr.co.vividnext.sodalive.explorer.profile.creatorCommunity.comment.GetCommunityPostCommentListItem | import kr.co.vividnext.sodalive.explorer.profile.creatorCommunity.comment.GetCommunityPostCommentListItem | ||||||
|  |  | ||||||
| data class GetCommunityPostListResponse @QueryProjection constructor( | data class GetCommunityPostListResponse @QueryProjection constructor( | ||||||
|     val postId: Long, |     @JsonProperty("postId") val postId: Long, | ||||||
|     val creatorId: Long, |     @JsonProperty("creatorId") val creatorId: Long, | ||||||
|     val creatorNickname: String, |     @JsonProperty("creatorNickname") val creatorNickname: String, | ||||||
|     val creatorProfileUrl: String, |     @JsonProperty("creatorProfileUrl") val creatorProfileUrl: String, | ||||||
|     val imageUrl: String?, |     @JsonProperty("imageUrl") val imageUrl: String?, | ||||||
|     val audioUrl: String?, |     @JsonProperty("audioUrl") val audioUrl: String?, | ||||||
|     val content: String, |     @JsonProperty("content") val content: String, | ||||||
|     val price: Int, |     @JsonProperty("price") val price: Int, | ||||||
|     val date: String, |     @JsonProperty("date") val date: String, | ||||||
|     val isCommentAvailable: Boolean, |     @get:JsonProperty("isCommentAvailable") val isCommentAvailable: Boolean, | ||||||
|     val isAdult: Boolean, |     @get:JsonProperty("isAdult") val isAdult: Boolean, | ||||||
|     val isLike: Boolean, |     @get:JsonProperty("isLike") val isLike: Boolean, | ||||||
|     val existOrdered: Boolean, |     @JsonProperty("existOrdered") val existOrdered: Boolean, | ||||||
|     val likeCount: Int, |     @JsonProperty("likeCount") val likeCount: Int, | ||||||
|     val commentCount: Int, |     @JsonProperty("commentCount") val commentCount: Int, | ||||||
|     val firstComment: GetCommunityPostCommentListItem? |     @JsonProperty("firstComment") val firstComment: GetCommunityPostCommentListItem? | ||||||
| ) | ) | ||||||
|   | |||||||
| @@ -1,5 +1,6 @@ | |||||||
| package kr.co.vividnext.sodalive.live.room | package kr.co.vividnext.sodalive.live.room | ||||||
|  |  | ||||||
|  | import com.fasterxml.jackson.annotation.JsonProperty | ||||||
| import com.querydsl.core.annotations.QueryProjection | import com.querydsl.core.annotations.QueryProjection | ||||||
| import kr.co.vividnext.sodalive.extensions.getTimeAgoString | import kr.co.vividnext.sodalive.extensions.getTimeAgoString | ||||||
| import java.time.LocalDateTime | import java.time.LocalDateTime | ||||||
| @@ -12,11 +13,11 @@ data class GetLatestFinishedLiveQueryResponse @QueryProjection constructor( | |||||||
| ) | ) | ||||||
|  |  | ||||||
| data class GetLatestFinishedLiveResponse( | data class GetLatestFinishedLiveResponse( | ||||||
|     val memberId: Long, |     @JsonProperty("memberId") val memberId: Long, | ||||||
|     val nickname: String, |     @JsonProperty("nickname") val nickname: String, | ||||||
|     val profileImageUrl: String, |     @JsonProperty("profileImageUrl") val profileImageUrl: String, | ||||||
|     val timeAgo: String, |     @JsonProperty("timeAgo") val timeAgo: String, | ||||||
|     var isFollowing: Boolean = false |     @get:JsonProperty("following") var following: Boolean = false | ||||||
| ) { | ) { | ||||||
|     constructor(response: GetLatestFinishedLiveQueryResponse) : this( |     constructor(response: GetLatestFinishedLiveQueryResponse) : this( | ||||||
|         response.memberId, |         response.memberId, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user