feat(content-all): theme, 정렬(최신순/인기순) 추가
This commit is contained in:
@@ -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
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user