From 412c52e75475eb0615d107d1cd4fa2b9bd4c78f6 Mon Sep 17 00:00:00 2001 From: Klaus Date: Tue, 25 Nov 2025 16:36:39 +0900 Subject: [PATCH] =?UTF-8?q?feat(creator-cheers):=20=ED=8C=AC=20Talk=20?= =?UTF-8?q?=EC=9D=91=EC=9B=90=EA=B8=80=20=EB=93=B1=EB=A1=9D=20=EC=8B=9C=20?= =?UTF-8?q?=EC=96=B8=EC=96=B4=20=EC=BD=94=EB=93=9C=EB=A5=BC=20=EC=9E=85?= =?UTF-8?q?=EB=A0=A5=20=EB=B0=9B=EC=9D=84=20=EC=88=98=20=EC=9E=88=EB=8A=94?= =?UTF-8?q?=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kr/co/vividnext/sodalive/explorer/ExplorerService.kt | 2 +- .../kr/co/vividnext/sodalive/explorer/profile/CreatorCheers.kt | 1 + .../sodalive/explorer/profile/PostWriteCheersRequest.kt | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt index 7536269..933a8a8 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt @@ -441,7 +441,7 @@ class ExplorerService( val isBlocked = memberService.isBlocked(blockedMemberId = member.id!!, memberId = request.creatorId) if (isBlocked) throw SodaException("${creator.nickname}님의 요청으로 팬토크 작성이 제한됩니다.") - val cheers = CreatorCheers(cheers = request.content) + val cheers = CreatorCheers(cheers = request.content, languageCode = request.languageCode) cheers.member = member cheers.creator = creator diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/CreatorCheers.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/CreatorCheers.kt index a7d7e54..8aa260c 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/CreatorCheers.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/CreatorCheers.kt @@ -13,6 +13,7 @@ import javax.persistence.OneToMany data class CreatorCheers( @Column(columnDefinition = "TEXT", nullable = false) var cheers: String, + var languageCode: String?, var isActive: Boolean = true ) : BaseEntity() { @ManyToOne(fetch = FetchType.LAZY) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/PostWriteCheersRequest.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/PostWriteCheersRequest.kt index 9d75c7f..81969c6 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/PostWriteCheersRequest.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/PostWriteCheersRequest.kt @@ -3,5 +3,6 @@ package kr.co.vividnext.sodalive.explorer.profile data class PostWriteCheersRequest( val parentId: Long? = null, val creatorId: Long, - val content: String + val content: String, + val languageCode: String? = null )