From 528846c0022c3b406cb9665328b0a7d861effcef Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Sat, 11 Mar 2023 20:24:24 +0300 Subject: [PATCH] change skirdaDomain --- domain/domain.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/domain/domain.go b/domain/domain.go index b5a2e4c..86002d3 100644 --- a/domain/domain.go +++ b/domain/domain.go @@ -5,17 +5,15 @@ import ( ) type SkirdaDomain struct { - DomainId string `json:"domainId"` - //SkirdaGames `json:"games"` - Users []SkirdaDomainUser - Games []string `json:"games"` - Events []string `json:"events"` - // skirdasession.SkirdaSessions + DomainId string `json:"domainId"` + Users []SkirdaDomainUser `json:"users"` + Games []string `json:"games"` + Events []string `json:"events"` } type SkirdaDomainUser struct { - SkirdaUserId string - Role string + SkirdaUserId string `json:"skirdauserid"` + RolesId []string `json:"rolesid"` } //func (domain SkirdaDomain) BuildDomain(newGames []SkirdaGame, newSessions []SkirdaSession) {