관리자 시리즈 검색 API - 검색어 추가

관리자/앱 콘텐츠 배너 API - 시리즈 추가
This commit is contained in:
2025-01-17 14:00:09 +09:00
parent 40c0b72450
commit ddb49f6215
5 changed files with 15 additions and 0 deletions

View File

@@ -97,6 +97,8 @@ class AudioContentMainService(
.filter {
if (it.type == AudioContentBannerType.CREATOR && it.creator != null) {
!blockMemberRepository.isBlocked(blockedMemberId = memberId, memberId = it.creator!!.id!!)
} else if (it.type == AudioContentBannerType.SERIES && it.series != null) {
!blockMemberRepository.isBlocked(blockedMemberId = memberId, memberId = it.series!!.member!!.id!!)
} else {
true
}
@@ -132,6 +134,11 @@ class AudioContentMainService(
} else {
null
},
seriesId = if (it.type == AudioContentBannerType.SERIES && it.series != null) {
it.series!!.id
} else {
null
},
link = it.link
)
}

View File

@@ -8,5 +8,6 @@ data class GetAudioContentBannerResponse(
@JsonProperty("thumbnailImageUrl") val thumbnailImageUrl: String,
@JsonProperty("eventItem") val eventItem: EventItem?,
@JsonProperty("creatorId") val creatorId: Long?,
@JsonProperty("seriesId") val seriesId: Long?,
@JsonProperty("link") val link: String?
)