@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user