mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
fa9f581d56
* chore: move to new org * logging * fix: org rename caos -> zitadel Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
42 lines
817 B
Go
42 lines
817 B
Go
package management
|
|
|
|
import (
|
|
"github.com/zitadel/zitadel/internal/api/grpc/server/middleware"
|
|
)
|
|
|
|
func (a *ListAppsResponse) Localizers() []middleware.Localizer {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
|
|
localizers := make([]middleware.Localizer, 0)
|
|
for _, a := range a.Result {
|
|
localizers = append(localizers, a.Localizers()...)
|
|
}
|
|
return localizers
|
|
}
|
|
|
|
func (a *GetAppByIDResponse) Localizers() []middleware.Localizer {
|
|
if a == nil || (a != nil && a.App == nil) {
|
|
return nil
|
|
}
|
|
|
|
return a.App.Localizers()
|
|
}
|
|
|
|
func (a *AddOIDCAppResponse) Localizers() []middleware.Localizer {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
|
|
if !a.NoneCompliant {
|
|
return nil
|
|
}
|
|
localizers := make([]middleware.Localizer, len(a.ComplianceProblems))
|
|
for i, problem := range a.ComplianceProblems {
|
|
localizers[i] = problem
|
|
}
|
|
return localizers
|
|
|
|
}
|