feat: 포인트 내역 UI 추가
This commit is contained in:
27
SodaLive/Sources/MyPage/Point/PointStatusRepository.swift
Normal file
27
SodaLive/Sources/MyPage/Point/PointStatusRepository.swift
Normal file
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user