fix(recommendation): 추천 snapshot offset 범위를 확장한다

This commit is contained in:
2026-06-27 05:11:22 +09:00
parent 63df1b5777
commit 24e217e8ee
6 changed files with 19 additions and 19 deletions

View File

@@ -12,7 +12,7 @@ class RecommendationSnapshotPersistenceAdapter(
) : RecommendationSnapshotPort {
override fun findLatestSnapshots(
sectionType: RecommendedSectionType,
offset: Int,
offset: Long,
limit: Int
): List<RecommendationSnapshotRecord> {
return repository.findLatestSnapshots(sectionType.name, offset, limit).map { it.toRecord() }

View File

@@ -24,7 +24,7 @@ interface RecommendationSnapshotRepository : JpaRepository<RecommendationSnapsho
)
fun findLatestSnapshots(
@Param("sectionType") sectionType: String,
@Param("offset") offset: Int,
@Param("offset") offset: Long,
@Param("limit") limit: Int
): List<RecommendationSnapshot>

View File

@@ -24,7 +24,7 @@ class HomeRecommendationQueryService(
private val snapshotPort: RecommendationSnapshotPort
) {
fun findLiveRecommendations(
offset: Int = 0,
offset: Long = 0,
limit: Int = DEFAULT_LIVE_LIMIT,
memberId: Long? = null,
includeAdultLives: Boolean = false
@@ -49,7 +49,7 @@ class HomeRecommendationQueryService(
fun findRecentDebutCreators(
now: LocalDateTime,
offset: Int = 0,
offset: Long = 0,
limit: Int = DEFAULT_RECENT_DEBUT_CREATOR_LIMIT,
memberId: Long? = null,
includeAdultContents: Boolean = false
@@ -59,7 +59,7 @@ class HomeRecommendationQueryService(
fun findFirstAudioContents(
now: LocalDateTime,
offset: Int = 0,
offset: Long = 0,
limit: Int = DEFAULT_FIRST_AUDIO_CONTENT_LIMIT,
memberId: Long? = null,
includeAdultContents: Boolean = false
@@ -68,7 +68,7 @@ class HomeRecommendationQueryService(
}
fun findAiCharacterRecommendations(
offset: Int = 0,
offset: Long = 0,
limit: Int = DEFAULT_AI_CHARACTER_LIMIT
): List<HomeAiCharacterRecommendationRecord> {
val snapshots = snapshotPort.findLatestSnapshots(RecommendedSectionType.AI_CHARACTER, offset, limit)

View File

@@ -6,7 +6,7 @@ import java.time.LocalDateTime
interface RecommendationSnapshotPort {
fun findLatestSnapshots(
sectionType: RecommendedSectionType,
offset: Int = 0,
offset: Long = 0,
limit: Int = Int.MAX_VALUE
): List<RecommendationSnapshotRecord>