diff --git a/src/kernel/contract/eventInterface.go b/src/kernel/contract/eventInterface.go index 41cd04f4..b94fa7d4 100644 --- a/src/kernel/contract/eventInterface.go +++ b/src/kernel/contract/eventInterface.go @@ -8,6 +8,8 @@ type EventInterface interface { GetCreateTime() int GetMsgType() string GetEvent() string + GetEventKey() string + GetTicket() string GetChangeType() string ReadMessage(msg interface{}) error GetContent() []byte diff --git a/src/kernel/models/callback.go b/src/kernel/models/callback.go index 01e2f194..ea91a561 100644 --- a/src/kernel/models/callback.go +++ b/src/kernel/models/callback.go @@ -34,6 +34,7 @@ type CallbackMessageHeader struct { Event string `xml:"Event" json:"Event"` ChangeType string `xml:"ChangeType" json:"ChangeType"` EventKey string `xml:"EventKey,omitempty" json:"EventKey,omitempty"` + Ticket string `xml:"Ticket,omitempty" json:"Ticket,omitempty"` Content []byte } @@ -57,6 +58,14 @@ func (header CallbackMessageHeader) GetEvent() string { return header.Event } +func (header CallbackMessageHeader) GetEventKey() string { + return header.EventKey +} + +func (header CallbackMessageHeader) GetTicket() string { + return header.Ticket +} + func (header CallbackMessageHeader) GetChangeType() string { return header.ChangeType }