mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-13 19:23:29 +00:00
chore: move the go code into a subfolder
This commit is contained in:
21
apps/api/internal/iam/model/label_policy_view.go
Normal file
21
apps/api/internal/iam/model/label_policy_view.go
Normal 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{}
|
||||
}
|
8
apps/api/internal/iam/model/login_policy.go
Normal file
8
apps/api/internal/iam/model/login_policy.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package model
|
||||
|
||||
type PolicyState int32
|
||||
|
||||
const (
|
||||
PolicyStateActive PolicyState = iota
|
||||
PolicyStateRemoved
|
||||
)
|
13
apps/api/internal/iam/model/org_iam_policy.go
Normal file
13
apps/api/internal/iam/model/org_iam_policy.go
Normal 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
|
||||
}
|
@@ -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
|
||||
}
|
Reference in New Issue
Block a user