Skip to content

Commit

Permalink
Merge pull request #588 from ArtisanCloud/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Matrix-X authored Dec 16, 2024
2 parents 7e19948 + 7edebce commit 1713bce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/kernel/contract/eventInterface.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions src/kernel/models/callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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
}
Expand Down

0 comments on commit 1713bce

Please sign in to comment.