feat(creator): 대화하기 채팅방 진입을 연결한다
This commit is contained in:
@@ -6,8 +6,13 @@ import Moya
|
||||
|
||||
final class CreatorChannelHomeRepository {
|
||||
private let api = MoyaProvider<CreatorChannelHomeApi>()
|
||||
private let talkApi = MoyaProvider<TalkApi>()
|
||||
|
||||
func getHome(creatorId: Int) -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.getHome(creatorId: creatorId))
|
||||
}
|
||||
|
||||
func createChatRoom(characterId: Int) -> AnyPublisher<Response, MoyaError> {
|
||||
return talkApi.requestPublisher(.createChatRoom(request: CreateChatRoomRequest(characterId: characterId)))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user