Compare commits
2 Commits
ae6171e844
...
487d3c9d6e
Author | SHA1 | Date |
---|---|---|
|
487d3c9d6e | |
|
04c682fc9b |
|
@ -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() {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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?,
|
||||
|
|
|
@ -52,7 +52,7 @@ data class Order(
|
|||
override fun prePersist() {
|
||||
super.prePersist()
|
||||
if (type == OrderType.RENTAL) {
|
||||
endDate = startDate.plusDays(7)
|
||||
endDate = startDate.plusDays(15)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue