feat(chat-character): 최근 대화한 캐릭터 조회 구현 및 메인 API 연동

왜: 기존에는 채팅방 미구현으로 최근 대화 리스트를 빈 배열로 응답했음. 채팅방/메시지 기능이 준비됨에 따라 실제 최근 대화 캐릭터를 노출해야 함.
무엇:
- repository: findRecentCharactersByMember JPA 쿼리 추가 (채팅방/참여자/메시지 조인, 최신 메시지 기준 정렬)
- service: getRecentCharacters(member, limit) 구현 (member null 처리 및 페이징 적용)
- controller: /api/chat/character/main에서 인증 사용자 기준 최근 캐릭터 최대 10개 반환
This commit is contained in:
2025-08-11 11:33:35 +09:00
parent 5129400a29
commit 735f1e26df
4 changed files with 33 additions and 7 deletions

View File

@@ -94,7 +94,7 @@ class SecurityConfig(
.antMatchers("/ad-tracking/app-launch").permitAll()
.antMatchers(HttpMethod.GET, "/notice/latest").permitAll()
.antMatchers(HttpMethod.GET, "/api/chat/character/main").permitAll()
.antMatchers(HttpMethod.GET, "/api/chat/list").permitAll()
.antMatchers(HttpMethod.GET, "/api/chat/room/list").permitAll()
.anyRequest().authenticated()
.and()
.build()