feat(creator): 대화하기 채팅방 진입을 연결한다

This commit is contained in:
Yu Sung
2026-07-03 18:57:17 +09:00
parent 2b9018f9cb
commit b84098b15e
4 changed files with 60 additions and 5 deletions

View File

@@ -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)))
}
}