설정 페이지 추가

This commit is contained in:
Yu Sung
2023-08-10 22:05:14 +09:00
parent d06f4d6a36
commit dbeb15ba17
24 changed files with 1368 additions and 4 deletions

View File

@@ -0,0 +1,23 @@
//
// TermsRepository.swift
// SodaLive
//
// Created by klaus on 2023/08/10.
//
import Foundation
import CombineMoya
import Combine
import Moya
final class TermsRepository {
private let api = MoyaProvider<TermsApi>()
func getTermsOfService() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.terms)
}
func getPrivacyPolicy() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.privacy)
}
}