mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 07:37:31 +00:00
chore: move the go code into a subfolder
This commit is contained in:
19
apps/api/internal/domain/organization_settings.go
Normal file
19
apps/api/internal/domain/organization_settings.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package domain
|
||||
|
||||
type OrganizationSettingsState int32
|
||||
|
||||
const (
|
||||
OrganizationSettingsStateUnspecified OrganizationSettingsState = iota
|
||||
OrganizationSettingsStateActive
|
||||
OrganizationSettingsStateRemoved
|
||||
|
||||
organizationSettingsStateCount
|
||||
)
|
||||
|
||||
func (c OrganizationSettingsState) Valid() bool {
|
||||
return c >= 0 && c < organizationSettingsStateCount
|
||||
}
|
||||
|
||||
func (s OrganizationSettingsState) Exists() bool {
|
||||
return s.Valid() && s != OrganizationSettingsStateUnspecified && s != OrganizationSettingsStateRemoved
|
||||
}
|
Reference in New Issue
Block a user