2021-07-05 08:36:51 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
2022-04-26 23:01:45 +00:00
|
|
|
"github.com/zitadel/zitadel/internal/domain"
|
2021-07-05 08:36:51 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type PrivacyPolicyView struct {
|
|
|
|
AggregateID string
|
|
|
|
TOSLink string
|
|
|
|
PrivacyLink string
|
2023-03-28 19:36:52 +00:00
|
|
|
SupportEmail string
|
2021-07-05 08:36:51 +00:00
|
|
|
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
|
|
|
|
}
|