콘텐츠 메인

- ASMR 탭 UI 페이지 생성
This commit is contained in:
Yu Sung
2025-02-22 05:05:07 +09:00
parent 53266dc91b
commit 021fbd5294
6 changed files with 188 additions and 12 deletions

View File

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