2020-10-20 17:10:23 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
import (
|
2021-03-01 07:48:50 +00:00
|
|
|
"github.com/caos/zitadel/internal/domain"
|
2020-10-20 17:10:23 +00:00
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type LabelPolicyView struct {
|
2021-03-25 13:41:07 +00:00
|
|
|
AggregateID string
|
|
|
|
PrimaryColor string
|
|
|
|
SecondaryColor string
|
|
|
|
HideLoginNameSuffix bool
|
|
|
|
Default bool
|
2020-10-20 17:10:23 +00:00
|
|
|
|
|
|
|
CreationDate time.Time
|
|
|
|
ChangeDate time.Time
|
|
|
|
Sequence uint64
|
|
|
|
}
|
|
|
|
|
|
|
|
type LabelPolicySearchRequest struct {
|
|
|
|
Offset uint64
|
|
|
|
Limit uint64
|
|
|
|
SortingColumn LabelPolicySearchKey
|
|
|
|
Asc bool
|
|
|
|
Queries []*LabelPolicySearchQuery
|
|
|
|
}
|
|
|
|
|
|
|
|
type LabelPolicySearchKey int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
LabelPolicySearchKeyUnspecified LabelPolicySearchKey = iota
|
|
|
|
LabelPolicySearchKeyAggregateID
|
|
|
|
)
|
|
|
|
|
|
|
|
type LabelPolicySearchQuery struct {
|
|
|
|
Key LabelPolicySearchKey
|
2021-03-01 07:48:50 +00:00
|
|
|
Method domain.SearchMethod
|
2020-10-20 17:10:23 +00:00
|
|
|
Value interface{}
|
|
|
|
}
|
|
|
|
|
|
|
|
type LabelPolicySearchResponse struct {
|
|
|
|
Offset uint64
|
|
|
|
Limit uint64
|
|
|
|
TotalResult uint64
|
|
|
|
Result []*LabelPolicyView
|
|
|
|
Sequence uint64
|
|
|
|
Timestamp time.Time
|
|
|
|
}
|