Skip to content

Commit

Permalink
update callback.tmpl
Browse files Browse the repository at this point in the history
  • Loading branch information
zsmhub committed Aug 27, 2022
1 parent 5a1534d commit 1ff0b45
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions callback_generate/callback.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@ func ({{ .StructName }}) GetChangeType() string {
return "{{ .ChangeType }}"
}


func (m {{ .StructName }}) GetTypeKey() string {
return m.GetMessageType() + ":" + m.GetEventType() + ":" +m.GetChangeType()
}


func ({{ .StructName }}) ParseFromXml(data []byte) (CallBackExtraInfoInterface,error) {
var temp {{ .StructName }}
err := xml.Unmarshal(data, &temp)
return temp, err
}
}

0 comments on commit 1ff0b45

Please sign in to comment.