From 1ff0b45c0d3177302cc280e92e908e3f96837376 Mon Sep 17 00:00:00 2001 From: zsm Date: Sat, 27 Aug 2022 14:55:23 +0800 Subject: [PATCH] update callback.tmpl --- callback_generate/callback.tmpl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/callback_generate/callback.tmpl b/callback_generate/callback.tmpl index 205d54e..c941e04 100644 --- a/callback_generate/callback.tmpl +++ b/callback_generate/callback.tmpl @@ -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 -} \ No newline at end of file +}