test #53

Merged
klaus merged 10 commits from test into main 2023-10-24 10:42:11 +00:00
3 changed files with 3 additions and 0 deletions
Showing only changes of commit 487d3c9d6e - Show all commits

View File

@ -35,6 +35,7 @@ data class AudioContent(
@Enumerated(value = EnumType.STRING)
val type: AudioContentType = AudioContentType.INDIVIDUAL,
val isGeneratePreview: Boolean = true,
var isOnlyRental: Boolean = false,
var isAdult: Boolean = false,
var isCommentAvailable: Boolean = true
) : BaseEntity() {

View File

@ -486,6 +486,7 @@ class AudioContentService(
duration = audioContent.duration ?: "",
isAdult = audioContent.isAdult,
isMosaic = audioContent.isAdult && member.auth == null,
isOnlyRental = audioContent.isOnlyRental,
existOrdered = isExistsBundleAudioContent || isExistsAudioContent,
orderType = orderType,
remainingTime = remainingTime,

View File

@ -16,6 +16,7 @@ data class GetAudioContentDetailResponse(
val duration: String,
val isAdult: Boolean,
val isMosaic: Boolean,
val isOnlyRental: Boolean,
val existOrdered: Boolean,
val orderType: OrderType?,
val remainingTime: String?,