Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-group
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujiebin
hilo-group
Commits
2932ae9a
Commit
2932ae9a
authored
Aug 03, 2023
by
chenweijian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Domino
parent
ace0492e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
game.go
domain/model/game_m/game.go
+3
-2
group_info.go
route/group_r/group_info.go
+5
-1
No files found.
domain/model/game_m/game.go
View file @
2932ae9a
...
@@ -29,8 +29,9 @@ type GameInfo struct {
...
@@ -29,8 +29,9 @@ type GameInfo struct {
}
}
type
GameConfig
struct
{
type
GameConfig
struct
{
Ludo
*
GameConfigDiamond
`json:"ludo"`
Ludo
*
GameConfigDiamond
`json:"ludo"`
Uno
*
GameConfigDiamond
`json:"uno"`
Uno
*
GameConfigDiamond
`json:"uno"`
Domino
*
GameConfigDiamond
`json:"domino"`
}
}
type
GameConfigDiamond
struct
{
type
GameConfigDiamond
struct
{
...
...
route/group_r/group_info.go
View file @
2932ae9a
...
@@ -457,7 +457,11 @@ func GetRoomInfo(c *gin.Context) (*mycontext.MyContext, error) {
...
@@ -457,7 +457,11 @@ func GetRoomInfo(c *gin.Context) (*mycontext.MyContext, error) {
ThemeUrl
:
themeUrl
,
ThemeUrl
:
themeUrl
,
ThemeType
:
themeType
,
ThemeType
:
themeType
,
Role
:
group_e
.
GROUP_VISITOR
,
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
)
roles
,
_
,
err
:=
group_m
.
GetRolesInGroup
(
model
,
groupInfo
.
ImGroupId
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment