mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 11:58:02 +00:00
d8e42744b4
* fix: move eventstore pkgs * fix: move eventstore pkgs * fix: remove v2 view * fix: remove v2 view
24 lines
480 B
Go
24 lines
480 B
Go
package domain
|
|
|
|
import (
|
|
es_models "github.com/caos/zitadel/internal/eventstore/v1/models"
|
|
"golang.org/x/text/language"
|
|
)
|
|
|
|
type Profile struct {
|
|
es_models.ObjectRoot
|
|
|
|
FirstName string
|
|
LastName string
|
|
NickName string
|
|
DisplayName string
|
|
PreferredLanguage language.Tag
|
|
Gender Gender
|
|
PreferredLoginName string
|
|
LoginNames []string
|
|
}
|
|
|
|
func (p *Profile) IsValid() bool {
|
|
return p.FirstName != "" && p.LastName != ""
|
|
}
|