라이브 메인 페이지

This commit is contained in:
Yu Sung
2023-08-10 12:32:20 +09:00
parent 2456c897c3
commit f8bab4c232
42 changed files with 1873 additions and 2 deletions

View File

@@ -0,0 +1,27 @@
//
// LiveRecommendRepository.swift
// SodaLive
//
// Created by klaus on 2023/08/09.
//
import Foundation
import CombineMoya
import Combine
import Moya
final class LiveRecommendRepository {
private let api = MoyaProvider<LiveRecommendApi>()
func getFollowedChannelList() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getFollowedChannelList)
}
func getRecommendChannelList() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getRecommendChannelList)
}
func getRecommendLive() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getRecommendLive)
}
}