mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-16 09:31:28 +00:00
17 lines
280 B
Go
17 lines
280 B
Go
![]() |
package domain
|
||
|
|
||
|
import (
|
||
|
es_models "github.com/caos/zitadel/internal/eventstore/models"
|
||
|
)
|
||
|
|
||
|
type IAMMember struct {
|
||
|
es_models.ObjectRoot
|
||
|
|
||
|
UserID string
|
||
|
Roles []string
|
||
|
}
|
||
|
|
||
|
func (i *IAMMember) IsValid() bool {
|
||
|
return i.AggregateID != "" && i.UserID != "" && len(i.Roles) != 0
|
||
|
}
|