mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-23 13:42:25 +08:00
fix go vet
This commit is contained in:
@@ -26,7 +26,7 @@ func hello(ctx *context.Context) {
|
|||||||
|
|
||||||
//回复消息:演示回复用户发送的消息
|
//回复消息:演示回复用户发送的消息
|
||||||
text := message.NewText(msg.Content)
|
text := message.NewText(msg.Content)
|
||||||
return &message.Reply{message.MsgTypeText, text}
|
return &message.Reply{MsgType: message.MsgTypeText, MsgData: text}
|
||||||
})
|
})
|
||||||
|
|
||||||
//处理消息接收以及回复
|
//处理消息接收以及回复
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ func hello(c *gin.Context) {
|
|||||||
|
|
||||||
//回复消息:演示回复用户发送的消息
|
//回复消息:演示回复用户发送的消息
|
||||||
text := message.NewText(msg.Content)
|
text := message.NewText(msg.Content)
|
||||||
return &message.Reply{message.MsgTypeText, text}
|
return &message.Reply{MsgType: message.MsgTypeText, MsgData: text}
|
||||||
})
|
})
|
||||||
|
|
||||||
//处理消息接收以及回复
|
//处理消息接收以及回复
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ func hello(rw http.ResponseWriter, req *http.Request) {
|
|||||||
|
|
||||||
//回复消息:演示回复用户发送的消息
|
//回复消息:演示回复用户发送的消息
|
||||||
text := message.NewText(msg.Content)
|
text := message.NewText(msg.Content)
|
||||||
return &message.Reply{message.MsgTypeText, text}
|
return &message.Reply{MsgType: message.MsgTypeText, MsgData: text}
|
||||||
})
|
})
|
||||||
|
|
||||||
//处理消息接收以及回复
|
//处理消息接收以及回复
|
||||||
|
|||||||
Reference in New Issue
Block a user