커뮤니티 게시글 유료화 #182

Merged
klaus merged 7 commits from test into main 2024-05-24 14:44:15 +00:00
3 changed files with 4 additions and 1 deletions
Showing only changes of commit dad72b904f - Show all commits

View File

@ -3,5 +3,6 @@ package kr.co.vividnext.sodalive.explorer.profile.creatorCommunity
data class CreateCommunityPostRequest(
val content: String,
val isCommentAvailable: Boolean,
val isAdult: Boolean
val isAdult: Boolean,
val price: Int = 0
)

View File

@ -12,6 +12,7 @@ import javax.persistence.ManyToOne
data class CreatorCommunity(
@Column(columnDefinition = "TEXT", nullable = false)
var content: String,
var price: Int,
var isCommentAvailable: Boolean,
var isAdult: Boolean,
@Column(nullable = true)

View File

@ -49,6 +49,7 @@ class CreatorCommunityService(
val post = CreatorCommunity(
content = request.content,
price = request.price,
isCommentAvailable = request.isCommentAvailable,
isAdult = request.isAdult
)