캐릭터 챗봇 #338

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

View File

@ -22,7 +22,7 @@ class AdminChatCharacterService(
@Transactional(readOnly = true) @Transactional(readOnly = true)
fun getActiveChatCharacters(pageable: Pageable, imageHost: String = ""): ChatCharacterListPageResponse { fun getActiveChatCharacters(pageable: Pageable, imageHost: String = ""): ChatCharacterListPageResponse {
// isActive가 true인 캐릭터만 조회 // isActive가 true인 캐릭터만 조회
val page = chatCharacterRepository.findByIsActiveTrue(pageable) val page = chatCharacterRepository.findByActiveTrue(pageable)
// 페이지 정보 생성 // 페이지 정보 생성
val content = page.content.map { ChatCharacterListResponse.from(it, imageHost) } val content = page.content.map { ChatCharacterListResponse.from(it, imageHost) }

View File

@ -10,5 +10,5 @@ import org.springframework.stereotype.Repository
interface ChatCharacterRepository : JpaRepository<ChatCharacter, Long> { interface ChatCharacterRepository : JpaRepository<ChatCharacter, Long> {
fun findByCharacterUUID(characterUUID: String): ChatCharacter? fun findByCharacterUUID(characterUUID: String): ChatCharacter?
fun findByName(name: String): ChatCharacter? fun findByName(name: String): ChatCharacter?
fun findByIsActiveTrue(pageable: Pageable): Page<ChatCharacter> fun findByActiveTrue(pageable: Pageable): Page<ChatCharacter>
} }