mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-20 23:07:33 +00:00
beb1c1604a
* feat: command side privacy policy * feat: add privacy policy to api * feat: add privacy policy query side * fix: add privacy policy to mgmt api * fix: add privacy policy to auth and base data * feat: use privacyPolicy in login gui * feat: use privacyPolicy in login gui * feat: test org fatures * feat: typos * feat: tos in register
49 lines
899 B
Go
49 lines
899 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/caos/zitadel/internal/domain"
|
|
)
|
|
|
|
type PrivacyPolicyView struct {
|
|
AggregateID string
|
|
TOSLink string
|
|
PrivacyLink string
|
|
Default bool
|
|
|
|
CreationDate time.Time
|
|
ChangeDate time.Time
|
|
Sequence uint64
|
|
}
|
|
|
|
type PrivacyPolicySearchRequest struct {
|
|
Offset uint64
|
|
Limit uint64
|
|
SortingColumn PrivacyPolicySearchKey
|
|
Asc bool
|
|
Queries []*PrivacyPolicySearchQuery
|
|
}
|
|
|
|
type PrivacyPolicySearchKey int32
|
|
|
|
const (
|
|
PrivacyPolicySearchKeyUnspecified PrivacyPolicySearchKey = iota
|
|
PrivacyPolicySearchKeyAggregateID
|
|
)
|
|
|
|
type PrivacyPolicySearchQuery struct {
|
|
Key PrivacyPolicySearchKey
|
|
Method domain.SearchMethod
|
|
Value interface{}
|
|
}
|
|
|
|
type PrivacyPolicySearchResponse struct {
|
|
Offset uint64
|
|
Limit uint64
|
|
TotalResult uint64
|
|
Result []*PrivacyPolicyView
|
|
Sequence uint64
|
|
Timestamp time.Time
|
|
}
|