feat(content-all): theme, 정렬(최신순/인기순) 추가

This commit is contained in:
Yu Sung
2025-11-20 14:52:28 +09:00
parent af42fd074f
commit 68fd9ee3ad
4 changed files with 152 additions and 6 deletions

View File

@@ -200,7 +200,9 @@ final class ContentRepository {
page: Int,
size: Int,
isFree: Bool? = nil,
isPointAvailableOnly: Bool? = nil
isPointAvailableOnly: Bool? = nil,
sortType: ContentAllViewModel.Sort,
theme: String?
) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(
.getAllAudioContents(
@@ -209,6 +211,19 @@ final class ContentRepository {
page: page,
size: size,
isFree: isFree,
isPointAvailableOnly: isPointAvailableOnly,
sortType: sortType,
theme: theme
)
)
}
func getAudioContentActiveThemeList(isFree: Bool, isPointAvailableOnly: Bool) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(
.getAudioContentActiveThemeList(
isAdultContentVisible: UserDefaults.isAdultContentVisible(),
contentType: ContentType(rawValue: UserDefaults.string(forKey: .contentPreference)) ?? ContentType.ALL,
isFree: isFree,
isPointAvailableOnly: isPointAvailableOnly
)
)