Merge pull request 'test' (#361) from test into main

Reviewed-on: #361
This commit is contained in:
2025-11-17 07:13:11 +00:00
3 changed files with 4 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ class HomeService(
private val imageHost: String
) {
companion object {
private const val RECOMMEND_TARGET_SIZE = 20
private const val RECOMMEND_TARGET_SIZE = 30
private const val RECOMMEND_MAX_ATTEMPTS = 3
}

View File

@@ -75,11 +75,11 @@ class ChatCharacterController(
).content
// 추천 캐릭터 조회
// 최근 대화한 캐릭터를 제외한 랜덤 20개 조회
// 최근 대화한 캐릭터를 제외한 랜덤 30개 조회
// Controller에서는 호출만
// 세부로직은 추후에 변경될 수 있으므로 Service에 별도로 생성
val excludeIds = recentCharacters.map { it.characterId }
val recommendCharacters = service.getRecommendCharacters(excludeIds, 20)
val recommendCharacters = service.getRecommendCharacters(excludeIds, 30)
// 큐레이션 섹션 (활성화된 큐레이션 + 캐릭터)
val curationSections = curationQueryService.getActiveCurationsWithCharacters()

View File

@@ -83,6 +83,7 @@ class SecurityConfig(
.antMatchers("/api/home").permitAll()
.antMatchers("/api/home/latest-content").permitAll()
.antMatchers("/api/home/day-of-week-series").permitAll()
.antMatchers("/api/home/content-ranking").permitAll()
.antMatchers(HttpMethod.GET, "/api/live").permitAll()
.antMatchers(HttpMethod.GET, "/faq").permitAll()
.antMatchers(HttpMethod.GET, "/faq/category").permitAll()