채팅 캐릭터 등록 - 리전 등록 기능 추가

This commit is contained in:
2026-01-22 15:31:02 +09:00
parent 65fc47eff0
commit f53dcc32bd
6 changed files with 16 additions and 1 deletions

View File

@@ -67,6 +67,10 @@ class ChatCharacter(
@Column(nullable = false)
var characterType: CharacterType = CharacterType.Character,
// 리전 (기본값 KR, 수정 불가)
@Column(nullable = false)
val region: String = "KR",
var isActive: Boolean = true
) : BaseEntity() {
var imagePath: String? = null

View File

@@ -582,6 +582,7 @@ class ChatCharacterService(
originalTitle: String? = null,
originalLink: String? = null,
characterType: CharacterType = CharacterType.Character,
region: String = "KR",
tags: List<String> = emptyList(),
values: List<String> = emptyList(),
hobbies: List<String> = emptyList(),
@@ -600,7 +601,8 @@ class ChatCharacterService(
appearance = appearance,
originalTitle = originalTitle,
originalLink = originalLink,
characterType = characterType
characterType = characterType,
region = region
)
// 관련 엔티티 연결
@@ -630,6 +632,7 @@ class ChatCharacterService(
originalTitle: String? = null,
originalLink: String? = null,
characterType: CharacterType = CharacterType.Character,
region: String = "KR",
tags: List<String> = emptyList(),
values: List<String> = emptyList(),
hobbies: List<String> = emptyList(),
@@ -653,6 +656,7 @@ class ChatCharacterService(
originalTitle = originalTitle,
originalLink = originalLink,
characterType = characterType,
region = region,
tags = tags,
values = values,
hobbies = hobbies,