Skip to content

Commit

Permalink
feat/#95 :: CreateRoomUseCase ์ˆ˜์ •
Browse files Browse the repository at this point in the history
- return ํƒ€์ž…์„ Bool๋กœ ๋ณ€๊ฒฝํ–ˆ์Šต๋‹ˆ๋‹ค

Co-Authored-By: Youngkyu Song <[email protected]>
  • Loading branch information
Kiyoung-Kim-57 and youn9k committed Nov 25, 2024
1 parent c883c28 commit 6e2f908
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import Foundation
import PhotoGetherDomainInterface

public final class CreateRoomUseCaseImpl: CreateRoomUseCase {
public func execute() -> Result<(roomID: String, userID: String), Error> {
repository.
public func execute() -> Bool {
repository.roomService.createRoom()
}

private let repository: ConnectionRepository
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Foundation

public protocol CreateRoomUseCase {
func execute() -> Result<(roomID: String, userID: String), Error>
func execute() -> Bool
}

0 comments on commit 6e2f908

Please sign in to comment.