test #187

Merged
klaus merged 4 commits from test into main 2024-05-29 17:04:39 +00:00
3 changed files with 7 additions and 1 deletions
Showing only changes of commit f0aa0bc021 - Show all commits

View File

@ -32,7 +32,7 @@ data class AudioContent(
var title: String,
@Column(columnDefinition = "TEXT", nullable = false)
var detail: String,
val price: Int = 0,
var price: Int = 0,
var releaseDate: LocalDateTime? = null,
val limited: Int? = null,
var remaining: Int? = null,

View File

@ -139,5 +139,10 @@ class CreatorAdminContentService(
if (request.detail != null) {
audioContent.detail = request.detail
}
if (request.price != null) {
if (request.price < 5) throw SodaException("콘텐츠의 최소금액은 5캔 입니다.")
audioContent.price = request.price
}
}
}

View File

@ -4,6 +4,7 @@ data class UpdateCreatorAdminContentRequest(
val id: Long,
val title: String?,
val detail: String?,
val price: Int?,
val isAdult: Boolean?,
val isActive: Boolean?,
val isCommentAvailable: Boolean?