콘텐츠 메인 - 추천시리즈, 모닝콜, 숏플, 라이브 다시보기

- 남성향이면 여성 크리에이터, 여성향이면 남성 크리에이터 작품만 조회되도록 수정
This commit is contained in:
Yu Sung
2024-10-14 01:34:58 +09:00
parent d53b45ac19
commit 5532b1bdcc
4 changed files with 31 additions and 7 deletions

View File

@@ -26,6 +26,11 @@ class SeriesRepository {
}
func getRecommendSeriesList() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getRecommendSeriesList)
return api.requestPublisher(
.getRecommendSeriesList(
isAdultContentVisible: UserDefaults.isAdultContentVisible(),
contentType: ContentType(rawValue: UserDefaults.string(forKey: .contentPreference)) ?? ContentType.ALL
)
)
}
}