라이브 상세 페이지 추가

This commit is contained in:
Yu Sung
2023-08-14 19:22:23 +09:00
parent e0a5fb733d
commit 634f50d4f2
37 changed files with 2767 additions and 49 deletions

View File

@@ -56,4 +56,12 @@ final class LiveRepository {
func startLive(roomId: Int) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.startLive(request: StartLiveRequest(roomId: roomId)))
}
func cancelRoom(roomId: Int, reason: String) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.cancelRoom(request: CancelLiveRequest(roomId: roomId, reason: reason)))
}
func editLiveRoomInfo(roomId: Int, parameters: [MultipartFormData]) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.editLiveRoomInfo(roomId: roomId, parameters: parameters))
}
}