feat(chat-talk): 톡 목록 조회 API 연동 및 목록 UI 구성
This commit is contained in:
19
SodaLive/Sources/Chat/Talk/TalkRepository.swift
Normal file
19
SodaLive/Sources/Chat/Talk/TalkRepository.swift
Normal file
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// TalkRepository.swift
|
||||
// SodaLive
|
||||
//
|
||||
// Created by klaus on 8/29/25.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import CombineMoya
|
||||
import Combine
|
||||
import Moya
|
||||
|
||||
class TalkRepository {
|
||||
private let api = MoyaProvider<TalkApi>()
|
||||
|
||||
func getTalkRooms() -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.getTalkRooms)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user