28 lines
643 B
Swift
28 lines
643 B
Swift
//
|
|
// PointStatusRepository.swift
|
|
// SodaLive
|
|
//
|
|
// Created by klaus on 5/20/25.
|
|
//
|
|
|
|
import Foundation
|
|
import CombineMoya
|
|
import Combine
|
|
import Moya
|
|
|
|
class PointStatusRepository {
|
|
private let api = MoyaProvider<PointStatusApi>()
|
|
|
|
func getPointStatus() -> AnyPublisher<Response, MoyaError> {
|
|
return api.requestPublisher(.getPointStatus)
|
|
}
|
|
|
|
func getPointRewardStatus() -> AnyPublisher<Response, MoyaError> {
|
|
return api.requestPublisher(.getPointRewardStatus)
|
|
}
|
|
|
|
func getPointUseStatus() -> AnyPublisher<Response, MoyaError> {
|
|
return api.requestPublisher(.getPointUseStatus)
|
|
}
|
|
}
|