캐릭터 챗봇 #338

Merged
klaus merged 119 commits from test into main 2025-09-10 06:08:47 +00:00
5 changed files with 7 additions and 3 deletions
Showing only changes of commit 550e4ac9ce - Show all commits

View File

@ -57,7 +57,7 @@ class ChatCharacterController(
chatRoomService.listMyChatRooms(member, 0, 10)
.map { room ->
RecentCharacter(
roomId = room.chatRoomId,
characterId = room.characterId,
name = room.title,
imageUrl = room.imageUrl
)

View File

@ -22,7 +22,7 @@ data class Character(
)
data class RecentCharacter(
val roomId: Long,
val characterId: Long,
val name: String,
val imageUrl: String
)

View File

@ -24,6 +24,7 @@ data class CreateChatRoomResponse(
*/
data class ChatRoomListItemDto(
val chatRoomId: Long,
val characterId: Long,
val title: String,
val imageUrl: String,
val opponentType: String,
@ -61,6 +62,7 @@ data class ChatMessagesPageResponse(
data class ChatRoomListQueryDto(
val chatRoomId: Long,
val characterId: Long,
val title: String,
val imagePath: String?,
val characterType: CharacterType,

View File

@ -39,6 +39,7 @@ interface ChatRoomRepository : JpaRepository<ChatRoom, Long> {
value = """
SELECT new kr.co.vividnext.sodalive.chat.room.dto.ChatRoomListQueryDto(
r.id,
pc.character.id,
r.title,
pc.character.imagePath,
pc.character.characterType,
@ -54,7 +55,7 @@ interface ChatRoomRepository : JpaRepository<ChatRoom, Long> {
AND pc.isActive = true
AND r.isActive = true
AND m.isActive = true
GROUP BY r.id, r.title, r.createdAt, pc.character.imagePath, pc.character.characterType
GROUP BY r.id, r.title, r.createdAt, pc.character.id, pc.character.imagePath, pc.character.characterType
ORDER BY MAX(m.createdAt) DESC
"""
)

View File

@ -270,6 +270,7 @@ class ChatRoomService(
ChatRoomListItemDto(
chatRoomId = q.chatRoomId,
characterId = q.characterId,
title = q.title,
imageUrl = imageUrl,
opponentType = opponentType,