formating
This commit is contained in:
parent
6a1e9148d6
commit
8b8d982e9f
@ -8,7 +8,7 @@ type Repo interface {
|
||||
// Add a new game to the repo. ID needs to be nil on argument. PlayerID are fetched beforehand.
|
||||
AddGame(model.Game) (model.GameID, error)
|
||||
|
||||
//Get a game by ID. Returns nil if not found.
|
||||
// Get a game by ID. Returns nil if not found.
|
||||
GetGame(model.GameID) (*model.Game, error)
|
||||
|
||||
// Get ID of a player. Creates one if not found.
|
||||
@ -17,6 +17,8 @@ type Repo interface {
|
||||
// Get player by id. Returns nil if not found.
|
||||
GetPlayer(model.PlayerID) (*model.Player, error)
|
||||
|
||||
GetAllPlayers() ([]model.Player, error)
|
||||
|
||||
// Adds a game result. ID needs to be nil on argument.
|
||||
AddGameResult(model.GameResult) (model.GameResultID, error)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user