탐색 메인 페이지

This commit is contained in:
Yu Sung
2023-08-10 13:01:16 +09:00
parent f8bab4c232
commit 943e1d9f7f
10 changed files with 434 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
//
// ExplorerRepository.swift
// SodaLive
//
// Created by klaus on 2023/08/10.
//
import Foundation
import CombineMoya
import Combine
import Moya
final class ExplorerRepository {
private let api = MoyaProvider<ExplorerApi>()
func getExplorer() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getExplorer)
}
func searchChannel(channel: String) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.searchChannel(channel: channel))
}
}