feat(home): AI 캐릭터 프로필 이미지를 응답한다

This commit is contained in:
2026-06-01 21:34:48 +09:00
parent 4f66b6abb9
commit 0fdfc48680
4 changed files with 11 additions and 1 deletions

View File

@@ -278,6 +278,7 @@ class HomeRecommendationFacade(
characterId = characterId,
name = name,
description = description,
profileImage = imageUrl(cloudFrontHost, profileImage),
totalChatCount = totalChatCount,
originalWorkTitle = originalWorkTitle
)

View File

@@ -74,6 +74,7 @@ data class HomeAiCharacterItem(
val characterId: Long,
val name: String,
val description: String,
val profileImage: String?,
val totalChatCount: Long,
val originalWorkTitle: String?
)

View File

@@ -711,6 +711,7 @@ class DefaultHomeRecommendationQueryRepository(
chatCharacter.id,
chatCharacter.name,
chatCharacter.description,
chatCharacter.imagePath,
chatMessage.id.count(),
linkedOriginalWork.title
)
@@ -727,7 +728,13 @@ class DefaultHomeRecommendationQueryRepository(
chatMessage.isActive.isTrue
)
.where(chatCharacter.isActive.isTrue, chatCharacter.id.`in`(characterIds))
.groupBy(chatCharacter.id, chatCharacter.name, chatCharacter.description, linkedOriginalWork.title)
.groupBy(
chatCharacter.id,
chatCharacter.name,
chatCharacter.description,
chatCharacter.imagePath,
linkedOriginalWork.title
)
.fetch()
}

View File

@@ -135,6 +135,7 @@ data class HomeAiCharacterRecommendationRecord(
val characterId: Long,
val name: String,
val description: String,
val profileImage: String?,
val totalChatCount: Long,
val originalWorkTitle: String?
)