캐릭터 챗봇 #338

Merged
klaus merged 119 commits from test into main 2025-09-10 06:08:47 +00:00
1 changed files with 4 additions and 2 deletions
Showing only changes of commit 2ac0a5f896 - Show all commits

View File

@ -30,7 +30,8 @@ data class AdminCharacterImageResponse(
val imagePriceCan: Long,
val messagePriceCan: Long,
val imageUrl: String,
val triggers: List<String>
val triggers: List<String>,
val isAdult: Boolean
) {
companion object {
fun fromWithUrl(entity: CharacterImage, signedUrl: String): AdminCharacterImageResponse {
@ -44,7 +45,8 @@ data class AdminCharacterImageResponse(
imagePriceCan = entity.imagePriceCan,
messagePriceCan = entity.messagePriceCan,
imageUrl = url,
triggers = entity.triggerMappings.map { it.tag.word }
triggers = entity.triggerMappings.map { it.tag.word },
isAdult = entity.isAdult
)
}
}