feat(admin-character): 캐릭터 리스트, 캐릭터 상세
- CharacterType: 첫 글자만 대문자, 나머지 소문자로 변경 - 이미지가 null 이면 ""으로 변경
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user