fix(recommendation): 추천 snapshot offset 범위를 확장한다
This commit is contained in:
@@ -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() }
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user