고객센터 페이지 추가
This commit is contained in:
23
SodaLive/Sources/MyPage/ServiceCenter/FaqRepository.swift
Normal file
23
SodaLive/Sources/MyPage/ServiceCenter/FaqRepository.swift
Normal 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)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user