feat(home): AI 캐릭터 프로필 이미지를 응답한다
This commit is contained in:
@@ -278,6 +278,7 @@ class HomeRecommendationFacade(
|
||||
characterId = characterId,
|
||||
name = name,
|
||||
description = description,
|
||||
profileImage = imageUrl(cloudFrontHost, profileImage),
|
||||
totalChatCount = totalChatCount,
|
||||
originalWorkTitle = originalWorkTitle
|
||||
)
|
||||
|
||||
@@ -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?
|
||||
)
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
@@ -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?
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user