feat(audio-content-all): 무료 콘텐츠, 포인트 대여 콘텐츠 전체보기 페이지 UI/API 구현

This commit is contained in:
Yu Sung
2025-11-14 04:21:39 +09:00
parent e5810766b1
commit c4a7742514
7 changed files with 254 additions and 0 deletions

View File

@@ -195,4 +195,22 @@ final class ContentRepository {
func getCreatorRanking() -> AnyPublisher<Response, MoyaError> {
return explorerApi.requestPublisher(.getCreatorRank)
}
func getAllAudioContents(
page: Int,
size: Int,
isFree: Bool? = nil,
isPointAvailableOnly: Bool? = nil
) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(
.getAllAudioContents(
isAdultContentVisible: UserDefaults.isAdultContentVisible(),
contentType: ContentType(rawValue: UserDefaults.string(forKey: .contentPreference)) ?? ContentType.ALL,
page: page,
size: size,
isFree: isFree,
isPointAvailableOnly: isPointAvailableOnly
)
)
}
}