mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 15:17:37 +00:00
chore: move the go code into a subfolder
This commit is contained in:
37
apps/api/pkg/grpc/management/action.go
Normal file
37
apps/api/pkg/grpc/management/action.go
Normal file
@@ -0,0 +1,37 @@
|
||||
package management
|
||||
|
||||
import "github.com/zitadel/zitadel/internal/api/grpc/server/middleware"
|
||||
|
||||
func (r *ListFlowTypesResponse) Localizers() (localizers []middleware.Localizer) {
|
||||
if r == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
localizers = make([]middleware.Localizer, 0, len(r.Result))
|
||||
for _, typ := range r.Result {
|
||||
localizers = append(localizers, typ.Localizers()...)
|
||||
}
|
||||
|
||||
return localizers
|
||||
}
|
||||
|
||||
func (r *ListFlowTriggerTypesResponse) Localizers() (localizers []middleware.Localizer) {
|
||||
if r == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
localizers = make([]middleware.Localizer, 0, len(r.Result))
|
||||
for _, typ := range r.Result {
|
||||
localizers = append(localizers, typ.Localizers()...)
|
||||
}
|
||||
|
||||
return localizers
|
||||
}
|
||||
|
||||
func (r *GetFlowResponse) Localizers() []middleware.Localizer {
|
||||
if r == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
return r.Flow.Localizers()
|
||||
}
|
Reference in New Issue
Block a user