diff --git a/domain/model/game_m/game.go b/domain/model/game_m/game.go index 7e0afb723bd006ca97d46879812eb4af31ad7944..241b22c9d87242476a8962509ae86f8a624dbef7 100644 --- a/domain/model/game_m/game.go +++ b/domain/model/game_m/game.go @@ -29,8 +29,9 @@ type GameInfo struct { } type GameConfig struct { - Ludo *GameConfigDiamond `json:"ludo"` - Uno *GameConfigDiamond `json:"uno"` + Ludo *GameConfigDiamond `json:"ludo"` + Uno *GameConfigDiamond `json:"uno"` + Domino *GameConfigDiamond `json:"domino"` } type GameConfigDiamond struct { diff --git a/route/group_r/group_info.go b/route/group_r/group_info.go index 197c129c3c0bde50965e47487e0090a63e3faed7..a71b61b7e14bd544e2ab53dfe6c1b884e670fe55 100644 --- a/route/group_r/group_info.go +++ b/route/group_r/group_info.go @@ -457,7 +457,11 @@ func GetRoomInfo(c *gin.Context) (*mycontext.MyContext, error) { ThemeUrl: themeUrl, ThemeType: themeType, Role: group_e.GROUP_VISITOR, - GameConfig: &game_m.GameConfig{Ludo: &game_m.GameConfigDiamond{Diamond: game_e.GameLudoDiamondList}, Uno: &game_m.GameConfigDiamond{Diamond: game_e.GameLudoDiamondList}}, + GameConfig: &game_m.GameConfig{ + Ludo: &game_m.GameConfigDiamond{Diamond: game_e.GameLudoDiamondList}, + Uno: &game_m.GameConfigDiamond{Diamond: game_e.GameLudoDiamondList}, + Domino: &game_m.GameConfigDiamond{Diamond: game_e.GameLudoDiamondList}, + }, } roles, _, err := group_m.GetRolesInGroup(model, groupInfo.ImGroupId)