add userDomain type and field in domain

This commit is contained in:
cyber-dream 2023-03-11 16:52:09 +03:00
parent 2f451f2be4
commit b397940fef

View File

@ -7,11 +7,17 @@ import (
type SkirdaDomain struct {
DomainId string `json:"domainId"`
//SkirdaGames `json:"games"`
Users []SkirdaDomainUser
Games []string `json:"games"`
Events []string `json:"events"`
// skirdasession.SkirdaSessions
}
type SkirdaDomainUser struct {
SkirdaUserId string
Role string
}
//func (domain SkirdaDomain) BuildDomain(newGames []SkirdaGame, newSessions []SkirdaSession) {
// domain.AddGames(newGames)
// // domain.AddSessions(newSessions)