콘텐츠 테마 저장시 번역 API로 자동 번역 하는 기능 추가
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
@@ -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?
|
||||
}
|
||||
Reference in New Issue
Block a user