설정 페이지 추가
This commit is contained in:
21
SodaLive/Sources/Settings/Notice/NoticeRepository.swift
Normal file
21
SodaLive/Sources/Settings/Notice/NoticeRepository.swift
Normal file
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// NoticeRepository.swift
|
||||
// SodaLive
|
||||
//
|
||||
// Created by klaus on 2023/08/10.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import CombineMoya
|
||||
import Combine
|
||||
import Moya
|
||||
|
||||
final class NoticeRepository {
|
||||
|
||||
private let api = MoyaProvider<NoticeApi>()
|
||||
|
||||
func getNotices() -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.getNotices)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user