parent
fbc90b69d9
commit
17c5bade83
|
@ -34,6 +34,8 @@ data class AudioContent(
|
|||
var detail: String,
|
||||
val price: Int = 0,
|
||||
var releaseDate: LocalDateTime? = null,
|
||||
val limited: Int? = null,
|
||||
var remaining: Int? = null,
|
||||
@Enumerated(value = EnumType.STRING)
|
||||
val type: AudioContentType = AudioContentType.INDIVIDUAL,
|
||||
val isGeneratePreview: Boolean = true,
|
||||
|
|
|
@ -183,6 +183,8 @@ class AudioContentService(
|
|||
0
|
||||
},
|
||||
releaseDate = releaseDate,
|
||||
limited = request.limited,
|
||||
remaining = request.limited,
|
||||
isAdult = request.isAdult,
|
||||
isGeneratePreview = if (request.type == AudioContentType.INDIVIDUAL) {
|
||||
request.isGeneratePreview
|
||||
|
|
|
@ -5,6 +5,8 @@ data class CreateAudioContentRequest(
|
|||
val detail: String,
|
||||
val tags: String,
|
||||
val price: Int,
|
||||
val limited: Int? = null,
|
||||
val remaining: Int? = null,
|
||||
val timezone: String = "Asia/Seoul",
|
||||
val releaseDate: String? = null,
|
||||
val themeId: Long = 0,
|
||||
|
|
Loading…
Reference in New Issue