From 2932ae9ab7683b251c807dde8c4e7c15e8ede5d0 Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Thu, 3 Aug 2023 10:29:50 +0800 Subject: [PATCH] Domino --- domain/model/game_m/game.go | 5 +++-- route/group_r/group_info.go | 6 +++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/domain/model/game_m/game.go b/domain/model/game_m/game.go index 7e0afb7..241b22c 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 197c129..a71b61b 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) -- 2.22.0