마이페이지 추가
This commit is contained in:
20
SodaLive/Sources/MyPage/Auth/AuthRepository.swift
Normal file
20
SodaLive/Sources/MyPage/Auth/AuthRepository.swift
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// AuthRepository.swift
|
||||
// SodaLive
|
||||
//
|
||||
// Created by klaus on 2023/08/10.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import CombineMoya
|
||||
import Combine
|
||||
import Moya
|
||||
|
||||
final class AuthRepository {
|
||||
private let api = MoyaProvider<AuthApi>()
|
||||
|
||||
func authCertificate(receiptId: String) -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.auth(request: AuthVerifyRequest(receiptId: receiptId)))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user