mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 19:14:23 +00:00
42384763d1
* Label Policy added * save * chore: update docs action * Save * Save * Get colors from DB * Variables inserted * Get images from global directory. * Add tests * Add tests * Corrections from mergerequest * Corrections from mergerequest * Test corrected. * Added colors to all notifications. * Added colors to Corrected text and formatting.all notifications. * Spelling error corrected. * fix: tests * Merge Branch corrected. * Step6 added * Corrections from mergerequest * fix: generate management * Formatted texts. * fix: migrations Co-authored-by: Florian Forster <florian@caos.ch> Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Fabiennne <fabienne.gerschwiler@gmail.com>
49 lines
885 B
Go
49 lines
885 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/caos/zitadel/internal/model"
|
|
)
|
|
|
|
type LabelPolicyView struct {
|
|
AggregateID string
|
|
PrimaryColor string
|
|
SecondaryColor string
|
|
Default bool
|
|
|
|
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
|
|
Method model.SearchMethod
|
|
Value interface{}
|
|
}
|
|
|
|
type LabelPolicySearchResponse struct {
|
|
Offset uint64
|
|
Limit uint64
|
|
TotalResult uint64
|
|
Result []*LabelPolicyView
|
|
Sequence uint64
|
|
Timestamp time.Time
|
|
}
|