test #258

Merged
klaus merged 26 commits from test into main 2025-02-14 18:09:12 +00:00
2 changed files with 22 additions and 0 deletions
Showing only changes of commit 3caaa151f4 - Show all commits

View File

@ -71,4 +71,19 @@ class AudioContentMainTabSeriesController(private val service: AudioContentMainT
)
)
}
@GetMapping("/recommend-series-by-creator")
fun getRecommendSeriesByCreator(
@RequestParam creatorId: Long,
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?
) = run {
if (member == null) throw SodaException("로그인 정보를 확인해주세요.")
ApiResponse.ok(
service.getRecommendSeriesByCreator(
creatorId = creatorId,
isAdult = member.auth != null
)
)
}
}

View File

@ -212,4 +212,11 @@ class AudioContentMainTabSeriesService(
genreId = genreId
)
}
fun getRecommendSeriesByCreator(creatorId: Long, isAdult: Boolean): List<GetSeriesListResponse.SeriesListItem> {
return rankingService.fetchCreatorSeriesBySales(
creatorId = creatorId,
isAdult = isAdult
)
}
}