mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-27 17:52:14 +00:00
* fix: move eventstore pkgs * fix: move eventstore pkgs * fix: remove v2 view * fix: remove v2 view
27 lines
504 B
Go
27 lines
504 B
Go
package domain
|
|
|
|
import es_models "github.com/caos/zitadel/internal/eventstore/v1/models"
|
|
|
|
type UserGrant struct {
|
|
es_models.ObjectRoot
|
|
|
|
State UserGrantState
|
|
UserID string
|
|
ProjectID string
|
|
ProjectGrantID string
|
|
RoleKeys []string
|
|
}
|
|
|
|
type UserGrantState int32
|
|
|
|
const (
|
|
UserGrantStateUnspecified UserGrantState = iota
|
|
UserGrantStateActive
|
|
UserGrantStateInactive
|
|
UserGrantStateRemoved
|
|
)
|
|
|
|
func (u *UserGrant) IsValid() bool {
|
|
return u.ProjectID != "" && u.UserID != ""
|
|
}
|