chore: move the go code into a subfolder

This commit is contained in:
Florian Forster
2025-08-05 15:20:32 -07:00
parent 4ad22ba456
commit cd2921de26
2978 changed files with 373 additions and 300 deletions

View File

@@ -0,0 +1,21 @@
package model
import (
"github.com/zitadel/zitadel/internal/domain"
)
type LabelPolicySearchKey int32
const (
LabelPolicySearchKeyUnspecified LabelPolicySearchKey = iota
LabelPolicySearchKeyAggregateID
LabelPolicySearchKeyState
LabelPolicySearchKeyInstanceID
LabelPolicySearchKeyOwnerRemoved
)
type LabelPolicySearchQuery struct {
Key LabelPolicySearchKey
Method domain.SearchMethod
Value interface{}
}

View File

@@ -0,0 +1,8 @@
package model
type PolicyState int32
const (
PolicyStateActive PolicyState = iota
PolicyStateRemoved
)

View File

@@ -0,0 +1,13 @@
package model
import (
"github.com/zitadel/zitadel/internal/eventstore/v1/models"
)
type DomainPolicy struct {
models.ObjectRoot
State PolicyState
UserLoginMustBeDomain bool
Default bool
}

View File

@@ -0,0 +1,19 @@
package model
import (
"time"
)
type PasswordComplexityPolicyView struct {
AggregateID string
MinLength uint64
HasLowercase bool
HasUppercase bool
HasNumber bool
HasSymbol bool
Default bool
CreationDate time.Time
ChangeDate time.Time
Sequence uint64
}