Game store and create store functions
This commit is contained in:
parent
3c7c32423e
commit
f280c0701f
5 changed files with 139 additions and 44 deletions
|
@ -1,7 +1,7 @@
|
|||
package model
|
||||
|
||||
type Game struct {
|
||||
ID int
|
||||
UserID int
|
||||
Name string
|
||||
ID int `json:"id"`
|
||||
UserID int `json:"user_id"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ const (
|
|||
)
|
||||
|
||||
type GameMember struct {
|
||||
GameID int
|
||||
UserID int
|
||||
Role string
|
||||
GameID int `json:"game_id"`
|
||||
UserID int `json:"user_id"`
|
||||
Role string `json:"role"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue