From 74ed7b20ba831d5ad0033ad602d92124391941db Mon Sep 17 00:00:00 2001 From: Klaus Date: Thu, 7 Aug 2025 20:48:27 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=BA=90=EB=A6=AD=ED=84=B0=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1/=EC=88=98=EC=A0=95=20Request=20-=20JsonProperty=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chat/character/dto/ChatCharacterDto.kt | 89 ++++++++++--------- 1 file changed, 45 insertions(+), 44 deletions(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/admin/chat/character/dto/ChatCharacterDto.kt b/src/main/kotlin/kr/co/vividnext/sodalive/admin/chat/character/dto/ChatCharacterDto.kt index 94cf606..717bcd6 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/admin/chat/character/dto/ChatCharacterDto.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/admin/chat/character/dto/ChatCharacterDto.kt @@ -1,40 +1,41 @@ package kr.co.vividnext.sodalive.admin.chat.character.dto +import com.fasterxml.jackson.annotation.JsonProperty + data class ChatCharacterPersonalityRequest( - val trait: String, - val description: String + @JsonProperty("trait") val trait: String, + @JsonProperty("description") val description: String ) data class ChatCharacterBackgroundRequest( - val topic: String, - val description: String + @JsonProperty("topic") val topic: String, + @JsonProperty("description") val description: String ) data class ChatCharacterMemoryRequest( - val title: String, - val content: String, - val emotion: String + @JsonProperty("title") val title: String, + @JsonProperty("content") val content: String, + @JsonProperty("emotion") val emotion: String ) data class ChatCharacterRegisterRequest( - val name: String, - val systemPrompt: String, - val description: String, - val age: String?, - val gender: String?, - val mbti: String?, - val speechPattern: String?, - val speechStyle: String?, - val appearance: String?, - val isActive: Boolean = true, - val tags: List = emptyList(), - val hobbies: List = emptyList(), - val values: List = emptyList(), - val goals: List = emptyList(), - val relationships: List = emptyList(), - val personalities: List = emptyList(), - val backgrounds: List = emptyList(), - val memories: List = emptyList() + @JsonProperty("name") val name: String, + @JsonProperty("systemPrompt") val systemPrompt: String, + @JsonProperty("description") val description: String, + @JsonProperty("age") val age: String?, + @JsonProperty("gender") val gender: String?, + @JsonProperty("mbti") val mbti: String?, + @JsonProperty("speechPattern") val speechPattern: String?, + @JsonProperty("speechStyle") val speechStyle: String?, + @JsonProperty("appearance") val appearance: String?, + @JsonProperty("tags") val tags: List = emptyList(), + @JsonProperty("hobbies") val hobbies: List = emptyList(), + @JsonProperty("values") val values: List = emptyList(), + @JsonProperty("goals") val goals: List = emptyList(), + @JsonProperty("relationships") val relationships: List = emptyList(), + @JsonProperty("personalities") val personalities: List = emptyList(), + @JsonProperty("backgrounds") val backgrounds: List = emptyList(), + @JsonProperty("memories") val memories: List = emptyList() ) data class ExternalApiResponse( @@ -48,23 +49,23 @@ data class ExternalApiData( ) data class ChatCharacterUpdateRequest( - val id: Long, - val name: String? = null, - val systemPrompt: String? = null, - val description: String? = null, - val age: String? = null, - val gender: String? = null, - val mbti: String? = null, - val speechPattern: String? = null, - val speechStyle: String? = null, - val appearance: String? = null, - val isActive: Boolean? = null, - val tags: List? = null, - val hobbies: List? = null, - val values: List? = null, - val goals: List? = null, - val relationships: List? = null, - val personalities: List? = null, - val backgrounds: List? = null, - val memories: List? = null + @JsonProperty("id") val id: Long, + @JsonProperty("name") val name: String? = null, + @JsonProperty("systemPrompt") val systemPrompt: String? = null, + @JsonProperty("description") val description: String? = null, + @JsonProperty("age") val age: String? = null, + @JsonProperty("gender") val gender: String? = null, + @JsonProperty("mbti") val mbti: String? = null, + @JsonProperty("speechPattern") val speechPattern: String? = null, + @JsonProperty("speechStyle") val speechStyle: String? = null, + @JsonProperty("appearance") val appearance: String? = null, + @JsonProperty("isActive") val isActive: Boolean? = null, + @JsonProperty("tags") val tags: List? = null, + @JsonProperty("hobbies") val hobbies: List? = null, + @JsonProperty("values") val values: List? = null, + @JsonProperty("goals") val goals: List? = null, + @JsonProperty("relationships") val relationships: List? = null, + @JsonProperty("personalities") val personalities: List? = null, + @JsonProperty("backgrounds") val backgrounds: List? = null, + @JsonProperty("memories") val memories: List? = null )