Add create game and list games endpoints
This commit is contained in:
parent
38c7229216
commit
2d2cd288f2
4 changed files with 76 additions and 1 deletions
|
@ -189,3 +189,7 @@ func (gs *GameStore) AddMember(gameID, userID int, role string) (*model.GameMemb
|
|||
|
||||
return gs.GetMember(gameID, userID)
|
||||
}
|
||||
|
||||
func (gs *GameStore) ListForUser(userID int) ([]*model.Game, error) {
|
||||
return gs.getGamesByCondition(sq.Eq{"user_id": userID})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue