feat(main-home): 추천 홈 데이터 계층을 추가한다
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import Foundation
|
||||
import CombineMoya
|
||||
import Combine
|
||||
import Moya
|
||||
|
||||
final class MainHomeRepository {
|
||||
private let api = MoyaProvider<MainHomeApi>()
|
||||
|
||||
func getRecommendations() -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.getRecommendations)
|
||||
}
|
||||
|
||||
func followRecommendedCreators(request: FollowRecommendedCreatorsRequest) -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.followRecommendedCreators(request: request))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user