콘텐츠 메인
- 홈 UI 페이지 생성
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// ContentMainTabHomeRepository.swift
|
||||
// SodaLive
|
||||
//
|
||||
// Created by klaus on 2/20/25.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import CombineMoya
|
||||
import Combine
|
||||
import Moya
|
||||
|
||||
class ContentMainTabHomeRepository {
|
||||
private let api = MoyaProvider<ContentApi>()
|
||||
|
||||
func getContentMainHome() -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.getContentMainHome)
|
||||
}
|
||||
|
||||
func getPopularContentByCreator(creatorId: Int) -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.getPopularContentByCreator(creatorId: creatorId))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user