고객센터 페이지 추가

This commit is contained in:
Yu Sung
2023-08-11 07:33:38 +09:00
parent e082e07fa6
commit 64b0380671
13 changed files with 482 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
//
// FaqRepository.swift
// SodaLive
//
// Created by klaus on 2023/08/11.
//
import Foundation
import CombineMoya
import Combine
import Moya
final class FaqRepository {
private let api = MoyaProvider<FaqApi>()
func getFaqs(category: String) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.faqs(category: category))
}
func getFaqCategories() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.faqCategories)
}
}