Compare commits
No commits in common. "c46d6621ecdbdbe05f86ecb721f4edd7a20541a4" and "eee59855cc32988a4c58c419a404f4b64f20c5a1" have entirely different histories.
c46d6621ec
...
eee59855cc
|
@ -9,8 +9,6 @@ import java.time.LocalDateTime
|
|||
import javax.persistence.CascadeType
|
||||
import javax.persistence.Column
|
||||
import javax.persistence.Entity
|
||||
import javax.persistence.EnumType
|
||||
import javax.persistence.Enumerated
|
||||
import javax.persistence.FetchType
|
||||
import javax.persistence.JoinColumn
|
||||
import javax.persistence.ManyToOne
|
||||
|
@ -18,10 +16,6 @@ import javax.persistence.OneToMany
|
|||
import javax.persistence.OneToOne
|
||||
import javax.persistence.Table
|
||||
|
||||
enum class PurchaseOption {
|
||||
BOTH, BUY_ONLY, RENT_ONLY
|
||||
}
|
||||
|
||||
enum class SortType {
|
||||
NEWEST, PRICE_HIGH, PRICE_LOW
|
||||
}
|
||||
|
@ -36,8 +30,6 @@ data class AudioContent(
|
|||
var releaseDate: LocalDateTime? = null,
|
||||
val limited: Int? = null,
|
||||
var remaining: Int? = null,
|
||||
@Enumerated(value = EnumType.STRING)
|
||||
val purchaseOption: PurchaseOption = PurchaseOption.BOTH,
|
||||
val isGeneratePreview: Boolean = true,
|
||||
var isOnlyRental: Boolean = false,
|
||||
var isAdult: Boolean = false,
|
||||
|
|
|
@ -183,7 +183,6 @@ class AudioContentService(
|
|||
limited = request.limited,
|
||||
remaining = request.limited,
|
||||
isAdult = request.isAdult,
|
||||
purchaseOption = request.purchaseOption,
|
||||
isGeneratePreview = request.isGeneratePreview,
|
||||
isOnlyRental = if (request.limited != null && request.limited > 0) false else request.isOnlyRental,
|
||||
isCommentAvailable = request.isCommentAvailable
|
||||
|
@ -588,7 +587,6 @@ class AudioContentService(
|
|||
isMosaic = audioContent.isAdult && member.auth == null,
|
||||
isOnlyRental = audioContent.isOnlyRental,
|
||||
existOrdered = isExistsAudioContent,
|
||||
purchaseOption = audioContent.purchaseOption,
|
||||
orderType = orderType,
|
||||
remainingTime = remainingTime,
|
||||
creatorOtherContentList = creatorOtherContentList,
|
||||
|
|
|
@ -5,7 +5,6 @@ data class CreateAudioContentRequest(
|
|||
val detail: String,
|
||||
val tags: String,
|
||||
val price: Int,
|
||||
val purchaseOption: PurchaseOption = PurchaseOption.BOTH,
|
||||
val limited: Int? = null,
|
||||
val timezone: String = "Asia/Seoul",
|
||||
val releaseDate: String? = null,
|
||||
|
|
|
@ -23,7 +23,6 @@ data class GetAudioContentDetailResponse(
|
|||
val isMosaic: Boolean,
|
||||
val isOnlyRental: Boolean,
|
||||
val existOrdered: Boolean,
|
||||
val purchaseOption: PurchaseOption,
|
||||
val orderType: OrderType?,
|
||||
val remainingTime: String?,
|
||||
val creatorOtherContentList: List<OtherContentResponse>,
|
||||
|
|
Loading…
Reference in New Issue