mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
4eb380a825
* fix: styling type on idp * fix: google styling * fix: google styling * fix: google styling * fix: remove logo src from angular * fix: pr requests * fix drop column migration * fix: drop column migration * fix: grant id
63 lines
1.4 KiB
Go
63 lines
1.4 KiB
Go
package model
|
|
|
|
import (
|
|
"github.com/caos/zitadel/internal/model"
|
|
"time"
|
|
)
|
|
|
|
type IDPProviderView struct {
|
|
AggregateID string
|
|
IDPConfigID string
|
|
IDPProviderType IDPProviderType
|
|
Name string
|
|
StylingType IDPStylingType
|
|
IDPConfigType IdpConfigType
|
|
IDPState IDPConfigState
|
|
|
|
CreationDate time.Time
|
|
ChangeDate time.Time
|
|
Sequence uint64
|
|
}
|
|
|
|
type IDPProviderSearchRequest struct {
|
|
Offset uint64
|
|
Limit uint64
|
|
SortingColumn IDPProviderSearchKey
|
|
Asc bool
|
|
Queries []*IDPProviderSearchQuery
|
|
}
|
|
|
|
type IDPProviderSearchKey int32
|
|
|
|
const (
|
|
IDPProviderSearchKeyUnspecified IDPProviderSearchKey = iota
|
|
IDPProviderSearchKeyAggregateID
|
|
IDPProviderSearchKeyIdpConfigID
|
|
IDPProviderSearchKeyState
|
|
)
|
|
|
|
type IDPProviderSearchQuery struct {
|
|
Key IDPProviderSearchKey
|
|
Method model.SearchMethod
|
|
Value interface{}
|
|
}
|
|
|
|
type IDPProviderSearchResponse struct {
|
|
Offset uint64
|
|
Limit uint64
|
|
TotalResult uint64
|
|
Result []*IDPProviderView
|
|
Sequence uint64
|
|
Timestamp time.Time
|
|
}
|
|
|
|
func (r *IDPProviderSearchRequest) EnsureLimit(limit uint64) {
|
|
if r.Limit == 0 || r.Limit > limit {
|
|
r.Limit = limit
|
|
}
|
|
}
|
|
|
|
func (r *IDPProviderSearchRequest) AppendAggregateIDQuery(aggregateID string) {
|
|
r.Queries = append(r.Queries, &IDPProviderSearchQuery{Key: IDPProviderSearchKeyAggregateID, Method: model.SearchMethodEquals, Value: aggregateID})
|
|
}
|