mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 01:37:31 +00:00
fix: all enums same style (#262)
* fix: all enums same style * fix: rename process to reduce * add some missing enum renaming Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
@@ -25,11 +25,11 @@ type OrgDomainSearchRequest struct {
|
||||
type OrgDomainSearchKey int32
|
||||
|
||||
const (
|
||||
ORGDOMAINSEARCHKEY_UNSPECIFIED OrgDomainSearchKey = iota
|
||||
ORGDOMAINSEARCHKEY_DOMAIN
|
||||
ORGDOMAINSEARCHKEY_ORG_ID
|
||||
ORGDOMAINSEARCHKEY_VERIFIED
|
||||
ORGDOMAINSEARCHKEY_PRIMARY
|
||||
OrgDomainSearchKeyUnspecified OrgDomainSearchKey = iota
|
||||
OrgDomainSearchKeyDomain
|
||||
OrgDomainSearchKeyOrgID
|
||||
OrgDomainSearchKeyVerified
|
||||
OrgDomainSearchKeyPrimary
|
||||
)
|
||||
|
||||
type OrgDomainSearchQuery struct {
|
||||
|
@@ -32,16 +32,16 @@ type OrgChange struct {
|
||||
type OrgState int32
|
||||
|
||||
const (
|
||||
ORGSTATE_ACTIVE OrgState = iota
|
||||
ORGSTATE_INACTIVE
|
||||
OrgStateActive OrgState = iota
|
||||
OrgStateInactive
|
||||
)
|
||||
|
||||
func NewOrg(id string) *Org {
|
||||
return &Org{ObjectRoot: es_models.ObjectRoot{AggregateID: id}, State: ORGSTATE_ACTIVE}
|
||||
return &Org{ObjectRoot: es_models.ObjectRoot{AggregateID: id}, State: OrgStateActive}
|
||||
}
|
||||
|
||||
func (o *Org) IsActive() bool {
|
||||
return o.State == ORGSTATE_ACTIVE
|
||||
return o.State == OrgStateActive
|
||||
}
|
||||
|
||||
func (o *Org) IsValid() bool {
|
||||
|
@@ -16,6 +16,6 @@ type OrgIamPolicy struct {
|
||||
type PolicyState int32
|
||||
|
||||
const (
|
||||
POLICYSTATE_ACTIVE PolicyState = iota
|
||||
POLICYSTATE_REMOVED
|
||||
PolicyStateActive PolicyState = iota
|
||||
PolicyStateRemoved
|
||||
)
|
||||
|
@@ -30,13 +30,13 @@ type OrgMemberSearchRequest struct {
|
||||
type OrgMemberSearchKey int32
|
||||
|
||||
const (
|
||||
ORGMEMBERSEARCHKEY_UNSPECIFIED OrgMemberSearchKey = iota
|
||||
ORGMEMBERSEARCHKEY_USER_NAME
|
||||
ORGMEMBERSEARCHKEY_EMAIL
|
||||
ORGMEMBERSEARCHKEY_FIRST_NAME
|
||||
ORGMEMBERSEARCHKEY_LAST_NAME
|
||||
ORGMEMBERSEARCHKEY_ORG_ID
|
||||
ORGMEMBERSEARCHKEY_USER_ID
|
||||
OrgMemberSearchKeyUnspecified OrgMemberSearchKey = iota
|
||||
OrgMemberSearchKeyUserName
|
||||
OrgMemberSearchKeyEmail
|
||||
OrgMemberSearchKeyFirstName
|
||||
OrgMemberSearchKeyLastName
|
||||
OrgMemberSearchKeyOrgID
|
||||
OrgMemberSearchKeyUserID
|
||||
)
|
||||
|
||||
type OrgMemberSearchQuery struct {
|
||||
|
@@ -29,12 +29,12 @@ type OrgSearchRequest struct {
|
||||
type OrgSearchKey int32
|
||||
|
||||
const (
|
||||
ORGSEARCHKEY_UNSPECIFIED OrgSearchKey = iota
|
||||
ORGSEARCHKEY_ORG_ID
|
||||
ORGSEARCHKEY_ORG_NAME
|
||||
ORGSEARCHKEY_ORG_DOMAIN
|
||||
ORGSEARCHKEY_STATE
|
||||
ORGSEARCHKEY_RESOURCEOWNER
|
||||
OrgSearchKeyUnspecified OrgSearchKey = iota
|
||||
OrgSearchKeyOrgID
|
||||
OrgSearchKeyOrgName
|
||||
OrgSearchKeyOrgDomain
|
||||
OrgSearchKeyState
|
||||
OrgSearchKeyResourceOwner
|
||||
)
|
||||
|
||||
type OrgSearchQuery struct {
|
||||
|
Reference in New Issue
Block a user