mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 11:58:02 +00:00
fa9f581d56
* chore: move to new org * logging * fix: org rename caos -> zitadel Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
50 lines
1.1 KiB
Go
50 lines
1.1 KiB
Go
package management
|
|
|
|
import (
|
|
"github.com/zitadel/zitadel/internal/api/grpc/server/middleware"
|
|
)
|
|
|
|
func (c *ListUserChangesResponse) Localizers() []middleware.Localizer {
|
|
if c == nil {
|
|
return nil
|
|
}
|
|
localizers := make([]middleware.Localizer, len(c.Result))
|
|
for i, change := range c.Result {
|
|
localizers[i] = change.EventType
|
|
}
|
|
return localizers
|
|
}
|
|
|
|
func (c *ListOrgChangesResponse) Localizers() []middleware.Localizer {
|
|
if c == nil {
|
|
return nil
|
|
}
|
|
localizers := make([]middleware.Localizer, len(c.Result))
|
|
for i, change := range c.Result {
|
|
localizers[i] = change.EventType
|
|
}
|
|
return localizers
|
|
}
|
|
|
|
func (c *ListProjectChangesResponse) Localizers() []middleware.Localizer {
|
|
if c == nil {
|
|
return nil
|
|
}
|
|
localizers := make([]middleware.Localizer, len(c.Result))
|
|
for i, change := range c.Result {
|
|
localizers[i] = change.EventType
|
|
}
|
|
return localizers
|
|
}
|
|
|
|
func (c *ListAppChangesResponse) Localizers() []middleware.Localizer {
|
|
if c == nil {
|
|
return nil
|
|
}
|
|
localizers := make([]middleware.Localizer, len(c.Result))
|
|
for i, change := range c.Result {
|
|
localizers[i] = change.EventType
|
|
}
|
|
return localizers
|
|
}
|