implemented GetAllPlayers in inMemoryRepo
This commit is contained in:
parent
8b8d982e9f
commit
5d46f98cb4
@ -79,6 +79,10 @@ func (r *InMemoryRepo) GetPlayer(id model.PlayerID) (*model.Player, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (r *InMemoryRepo) GetAllPlayers() ([]model.Player,error){
|
||||
return r.players, nil
|
||||
}
|
||||
|
||||
func (r *InMemoryRepo) AddGameResult(result model.GameResult) (model.GameResultID, error) {
|
||||
id := model.GameResultID(strconv.Itoa(len(r.results)))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user