fix: add preferred login name of editor to changes (#1847)

* fix: add preferred login name of editor to changes

* proto linting
This commit is contained in:
Livio Amstutz
2021-06-10 11:29:34 +02:00
committed by GitHub
parent 59af02b2f3
commit 67462eefe0
12 changed files with 87 additions and 63 deletions

View File

@@ -3,9 +3,10 @@ package model
import (
"strings"
"github.com/golang/protobuf/ptypes/timestamp"
es_models "github.com/caos/zitadel/internal/eventstore/v1/models"
iam_model "github.com/caos/zitadel/internal/iam/model"
"github.com/golang/protobuf/ptypes/timestamp"
)
type Org struct {
@@ -33,12 +34,13 @@ type OrgChanges struct {
}
type OrgChange struct {
ChangeDate *timestamp.Timestamp `json:"changeDate,omitempty"`
EventType string `json:"eventType,omitempty"`
Sequence uint64 `json:"sequence,omitempty"`
ModifierId string `json:"modifierUser,omitempty"`
ModifierName string `json:"-"`
Data interface{} `json:"data,omitempty"`
ChangeDate *timestamp.Timestamp `json:"changeDate,omitempty"`
EventType string `json:"eventType,omitempty"`
Sequence uint64 `json:"sequence,omitempty"`
ModifierId string `json:"modifierUser,omitempty"`
ModifierName string `json:"-"`
ModifierLoginName string `json:"-"`
Data interface{} `json:"data,omitempty"`
}
type OrgState int32