mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 07:57:32 +00:00
chore: move the go code into a subfolder
This commit is contained in:
26
apps/api/internal/domain/feature.go
Normal file
26
apps/api/internal/domain/feature.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package domain
|
||||
|
||||
type Feature int
|
||||
|
||||
func (f Feature) Type() FeatureType {
|
||||
switch f {
|
||||
case FeatureUnspecified:
|
||||
return FeatureTypeUnspecified
|
||||
case FeatureLoginDefaultOrg:
|
||||
return FeatureTypeBoolean
|
||||
default:
|
||||
return FeatureTypeUnspecified
|
||||
}
|
||||
}
|
||||
|
||||
const (
|
||||
FeatureTypeUnspecified FeatureType = iota
|
||||
FeatureTypeBoolean
|
||||
)
|
||||
|
||||
type FeatureType int
|
||||
|
||||
const (
|
||||
FeatureUnspecified Feature = iota
|
||||
FeatureLoginDefaultOrg
|
||||
)
|
Reference in New Issue
Block a user