콘텐츠 메인

- 모닝콜 탭 UI 페이지 생성
This commit is contained in:
Yu Sung
2025-02-22 04:42:50 +09:00
parent e9e7403579
commit 53266dc91b
12 changed files with 345 additions and 6 deletions

View File

@@ -0,0 +1,24 @@
//
// ContentMainTabAlarmRepository.swift
// SodaLive
//
// Created by klaus on 2/22/25.
//
import Foundation
import CombineMoya
import Combine
import Moya
final class ContentMainTabAlarmRepository {
private let api = MoyaProvider<ContentApi>()
func getContentMainAlarm() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getContentMainAlarm)
}
func getContentMainAlarmAll(theme: String, page: Int = 1, size: Int = 10) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getContentMainAlarmAll(theme: theme, page: page, size: size))
}
}