Add game list command
This commit is contained in:
parent
2d2cd288f2
commit
50a43b86c0
5 changed files with 116 additions and 0 deletions
|
@ -193,3 +193,7 @@ func (gs *GameStore) AddMember(gameID, userID int, role string) (*model.GameMemb
|
|||
func (gs *GameStore) ListForUser(userID int) ([]*model.Game, error) {
|
||||
return gs.getGamesByCondition(sq.Eq{"user_id": userID})
|
||||
}
|
||||
|
||||
func (gs *GameStore) List() ([]*model.Game, error) {
|
||||
return gs.getGamesByCondition(sq.Eq{})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue