add userDomain type and field in domain
This commit is contained in:
parent
2f451f2be4
commit
b397940fef
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user