콘텐츠 메인

- 라이브 다시듣기 탭 UI 페이지 생성
This commit is contained in:
Yu Sung
2025-02-22 05:20:55 +09:00
parent 021fbd5294
commit 4df34b7fb6
7 changed files with 242 additions and 6 deletions

View File

@@ -0,0 +1,24 @@
//
// ContentMainTabReplayRepository.swift
// SodaLive
//
// Created by klaus on 2/22/25.
//
import Foundation
import CombineMoya
import Combine
import Moya
final class ContentMainTabReplayRepository {
private let api = MoyaProvider<ContentApi>()
func getContentMainReplay() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getContentMainReplay)
}
func getPopularContentByCreator(creatorId: Int) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getPopularReplayContentByCreator(creatorId: creatorId))
}
}