feat(home): AI 캐릭터 프로필 이미지를 응답한다
This commit is contained in:
@@ -278,6 +278,7 @@ class HomeRecommendationFacade(
|
|||||||
characterId = characterId,
|
characterId = characterId,
|
||||||
name = name,
|
name = name,
|
||||||
description = description,
|
description = description,
|
||||||
|
profileImage = imageUrl(cloudFrontHost, profileImage),
|
||||||
totalChatCount = totalChatCount,
|
totalChatCount = totalChatCount,
|
||||||
originalWorkTitle = originalWorkTitle
|
originalWorkTitle = originalWorkTitle
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ data class HomeAiCharacterItem(
|
|||||||
val characterId: Long,
|
val characterId: Long,
|
||||||
val name: String,
|
val name: String,
|
||||||
val description: String,
|
val description: String,
|
||||||
|
val profileImage: String?,
|
||||||
val totalChatCount: Long,
|
val totalChatCount: Long,
|
||||||
val originalWorkTitle: String?
|
val originalWorkTitle: String?
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -711,6 +711,7 @@ class DefaultHomeRecommendationQueryRepository(
|
|||||||
chatCharacter.id,
|
chatCharacter.id,
|
||||||
chatCharacter.name,
|
chatCharacter.name,
|
||||||
chatCharacter.description,
|
chatCharacter.description,
|
||||||
|
chatCharacter.imagePath,
|
||||||
chatMessage.id.count(),
|
chatMessage.id.count(),
|
||||||
linkedOriginalWork.title
|
linkedOriginalWork.title
|
||||||
)
|
)
|
||||||
@@ -727,7 +728,13 @@ class DefaultHomeRecommendationQueryRepository(
|
|||||||
chatMessage.isActive.isTrue
|
chatMessage.isActive.isTrue
|
||||||
)
|
)
|
||||||
.where(chatCharacter.isActive.isTrue, chatCharacter.id.`in`(characterIds))
|
.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()
|
.fetch()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -135,6 +135,7 @@ data class HomeAiCharacterRecommendationRecord(
|
|||||||
val characterId: Long,
|
val characterId: Long,
|
||||||
val name: String,
|
val name: String,
|
||||||
val description: String,
|
val description: String,
|
||||||
|
val profileImage: String?,
|
||||||
val totalChatCount: Long,
|
val totalChatCount: Long,
|
||||||
val originalWorkTitle: String?
|
val originalWorkTitle: String?
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user