mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-12 08:13:43 +00:00
20 lines
285 B
Go
20 lines
285 B
Go
|
package domain
|
||
|
|
||
|
type UserState int32
|
||
|
|
||
|
const (
|
||
|
UserStateUnspecified UserState = iota
|
||
|
UserStateActive
|
||
|
UserStateInactive
|
||
|
UserStateDeleted
|
||
|
UserStateLocked
|
||
|
UserStateSuspend
|
||
|
UserStateInitial
|
||
|
|
||
|
userStateCount
|
||
|
)
|
||
|
|
||
|
func (f UserState) Valid() bool {
|
||
|
return f >= 0 && f < userStateCount
|
||
|
}
|