1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-07 06:02:26 +08:00

fix go vet

This commit is contained in:
wenzl
2018-02-23 16:26:15 +08:00
parent 5e3fe8bb06
commit 4207d369b3
3 changed files with 3 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ func hello(ctx *context.Context) {
//回复消息:演示回复用户发送的消息
text := message.NewText(msg.Content)
return &message.Reply{message.MsgTypeText, text}
return &message.Reply{MsgType: message.MsgTypeText, MsgData: text}
})
//处理消息接收以及回复

View File

@@ -33,7 +33,7 @@ func hello(c *gin.Context) {
//回复消息:演示回复用户发送的消息
text := message.NewText(msg.Content)
return &message.Reply{message.MsgTypeText, text}
return &message.Reply{MsgType: message.MsgTypeText, MsgData: text}
})
//处理消息接收以及回复

View File

@@ -26,7 +26,7 @@ func hello(rw http.ResponseWriter, req *http.Request) {
//回复消息:演示回复用户发送的消息
text := message.NewText(msg.Content)
return &message.Reply{message.MsgTypeText, text}
return &message.Reply{MsgType: message.MsgTypeText, MsgData: text}
})
//处理消息接收以及回复