feat(admin-character): 캐릭터 리스트, 캐릭터 상세

- CharacterType: 첫 글자만 대문자, 나머지 소문자로 변경
- 이미지가 null 이면 ""으로 변경
This commit is contained in:
2025-08-12 17:01:51 +09:00
parent 00c617ec2e
commit 2965b8fea0
4 changed files with 8 additions and 8 deletions

View File

@@ -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,

View File

@@ -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(