Skip to content

Commit

Permalink
feat: playerUseCase 구현(#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
eemdeeks committed Jan 20, 2024
1 parent 81f8030 commit b1163f6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Projects/Domain/Sources/UseCase/Player/PlayerUseCase.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// PlayerUseCase.swift
// Domain
//
// Created by 박승찬 on 1/20/24.
// Copyright © 2024 com.pivoters. All rights reserved.
//

import Foundation

protocol PlayerUseCase {
func addPlayer(name: String, backNumber: Int) -> Player
}

class PlayerSelectionUseCase: PlayerUseCase {
func addPlayer(name: String, backNumber: Int) -> Player {
Player(id: UUID(), name: name, backNumber: backNumber)
}
}

0 comments on commit b1163f6

Please sign in to comment.