캐릭터 챗봇 #338
|
@ -124,8 +124,8 @@ class AdminChatCharacterController(
|
|||
originalLink = request.originalLink,
|
||||
characterType = request.characterType?.let {
|
||||
runCatching { CharacterType.valueOf(it) }
|
||||
.getOrDefault(CharacterType.CHARACTER)
|
||||
} ?: CharacterType.CHARACTER,
|
||||
.getOrDefault(CharacterType.Character)
|
||||
} ?: CharacterType.Character,
|
||||
tags = request.tags,
|
||||
values = request.values,
|
||||
hobbies = request.hobbies,
|
||||
|
|
|
@ -31,7 +31,7 @@ data class ChatCharacterDetailResponse(
|
|||
val fullImagePath = if (chatCharacter.imagePath != null && imageHost.isNotEmpty()) {
|
||||
"$imageHost/${chatCharacter.imagePath}"
|
||||
} else {
|
||||
chatCharacter.imagePath
|
||||
chatCharacter.imagePath ?: ""
|
||||
}
|
||||
|
||||
return ChatCharacterDetailResponse(
|
||||
|
|
|
@ -54,7 +54,7 @@ class ChatCharacter(
|
|||
// 캐릭터 유형
|
||||
@Enumerated(EnumType.STRING)
|
||||
@Column(nullable = false)
|
||||
var characterType: CharacterType = CharacterType.CHARACTER,
|
||||
var characterType: CharacterType = CharacterType.Character,
|
||||
|
||||
var isActive: Boolean = true
|
||||
) : BaseEntity() {
|
||||
|
@ -134,6 +134,6 @@ class ChatCharacter(
|
|||
}
|
||||
|
||||
enum class CharacterType {
|
||||
CLONE,
|
||||
CHARACTER
|
||||
Clone,
|
||||
Character
|
||||
}
|
||||
|
|
|
@ -225,7 +225,7 @@ class ChatCharacterService(
|
|||
appearance: String? = null,
|
||||
originalTitle: String? = null,
|
||||
originalLink: String? = null,
|
||||
characterType: CharacterType = CharacterType.CHARACTER,
|
||||
characterType: CharacterType = CharacterType.Character,
|
||||
tags: List<String> = emptyList(),
|
||||
values: List<String> = emptyList(),
|
||||
hobbies: List<String> = emptyList(),
|
||||
|
@ -309,7 +309,7 @@ class ChatCharacterService(
|
|||
appearance: String? = null,
|
||||
originalTitle: String? = null,
|
||||
originalLink: String? = null,
|
||||
characterType: CharacterType = CharacterType.CHARACTER,
|
||||
characterType: CharacterType = CharacterType.Character,
|
||||
tags: List<String> = emptyList(),
|
||||
values: List<String> = emptyList(),
|
||||
hobbies: List<String> = emptyList(),
|
||||
|
|
Loading…
Reference in New Issue