2021-02-22 14:08:47 +01:00
|
|
|
package model
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/golang/protobuf/ptypes/timestamp"
|
|
|
|
)
|
|
|
|
|
|
|
|
type UserChanges struct {
|
|
|
|
Changes []*UserChange
|
|
|
|
LastSequence uint64
|
|
|
|
}
|
|
|
|
|
|
|
|
type UserChange struct {
|
2021-06-10 11:29:34 +02:00
|
|
|
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:"-"`
|
2021-06-14 13:53:40 +02:00
|
|
|
ModifierAvatarURL string `json:"-"`
|
2021-06-10 11:29:34 +02:00
|
|
|
Data interface{} `json:"data,omitempty"`
|
2021-02-22 14:08:47 +01:00
|
|
|
}
|