feat(character-detail): 상세 화면 도입 및 네비게이션/API 연동
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// CharacterDetailRepository.swift
|
||||
// SodaLive
|
||||
//
|
||||
// Created by klaus on 9/1/25.
|
||||
//
|
||||
import Foundation
|
||||
import CombineMoya
|
||||
import Combine
|
||||
import Moya
|
||||
|
||||
class CharacterDetailRepository {
|
||||
private let characterApi = MoyaProvider<CharacterApi>()
|
||||
private let talkApi = MoyaProvider<TalkApi>()
|
||||
|
||||
func getCharacterDetail(characterId: Int) -> AnyPublisher<Response, MoyaError> {
|
||||
return characterApi.requestPublisher(.getCharacterDetail(characterId: characterId))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user