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 { type SkirdaDomain struct {
DomainId string `json:"domainId"` DomainId string `json:"domainId"`
//SkirdaGames `json:"games"` //SkirdaGames `json:"games"`
Users []SkirdaDomainUser
Games []string `json:"games"` Games []string `json:"games"`
Events []string `json:"events"` Events []string `json:"events"`
// skirdasession.SkirdaSessions // skirdasession.SkirdaSessions
} }
type SkirdaDomainUser struct {
SkirdaUserId string
Role string
}
//func (domain SkirdaDomain) BuildDomain(newGames []SkirdaGame, newSessions []SkirdaSession) { //func (domain SkirdaDomain) BuildDomain(newGames []SkirdaGame, newSessions []SkirdaSession) {
// domain.AddGames(newGames) // domain.AddGames(newGames)
// // domain.AddSessions(newSessions) // // domain.AddSessions(newSessions)