zitadel/internal/user/model/user_changes.go
Livio Amstutz 67462eefe0
fix: add preferred login name of editor to changes (#1847)
* fix: add preferred login name of editor to changes

* proto linting
2021-06-10 11:29:34 +02:00

21 lines
624 B
Go

package model
import (
"github.com/golang/protobuf/ptypes/timestamp"
)
type UserChanges struct {
Changes []*UserChange
LastSequence uint64
}
type UserChange 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:"-"`
ModifierLoginName string `json:"-"`
Data interface{} `json:"data,omitempty"`
}