콘텐츠 테마 저장시 번역 API로 자동 번역 하는 기능 추가

This commit is contained in:
2025-12-13 00:19:48 +09:00
parent 920a866ae0
commit 6f0619e482
5 changed files with 79 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ import javax.persistence.Table
@Entity
@Table(name = "content_theme")
data class AudioContentTheme(
class AudioContentTheme(
@Column(nullable = false)
var theme: String,
@Column(nullable = false)

View File

@@ -0,0 +1,11 @@
package kr.co.vividnext.sodalive.content.theme.translation
import kr.co.vividnext.sodalive.common.BaseEntity
import javax.persistence.Entity
@Entity
class ContentThemeTranslation(
val contentThemeId: Long,
val locale: String,
var theme: String
) : BaseEntity()

View File

@@ -0,0 +1,7 @@
package kr.co.vividnext.sodalive.content.theme.translation
import org.springframework.data.jpa.repository.JpaRepository
interface ContentThemeTranslationRepository : JpaRepository<ContentThemeTranslation, Long> {
fun findByContentThemeIdAndLocale(contentThemeId: Long, locale: String): ContentThemeTranslation?
}