Enha: leave one room model for now

This commit is contained in:
Grail Finder
2025-05-03 10:22:50 +03:00
parent 5cf1f1199e
commit b135356d3f
4 changed files with 21 additions and 36 deletions

View File

@ -42,7 +42,7 @@ func StrToUserRole(s string) UserRole {
type UserState struct {
Username string
Room RoomPublic
Room Room
Team UserTeam
Role UserRole
}
@ -54,8 +54,13 @@ func MakeTestState() *UserState {
{Word: "wheel", Color: "white"},
{Word: "condition", Color: "black"},
{Word: "test", Color: "white"},
{Word: "ball", Color: "blue"},
{Word: "violin", Color: "red"},
{Word: "rat", Color: "white"},
{Word: "perplexity", Color: "blue"},
{Word: "notion", Color: "red"},
}
room := RoomPublic{
room := Room{
ID: "test-id",
CreatedAt: time.Now(),
CreatorName: "test-name",