瀏覽代碼

fix go vet

wenzl 7 年之前
父節點
當前提交
4207d369b3
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      examples/beego/beego.go
  2. 1 1
      examples/gin/gin.go
  3. 1 1
      examples/http/http.go

+ 1 - 1
examples/beego/beego.go

@@ -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}
 	})
 
 	//处理消息接收以及回复

+ 1 - 1
examples/gin/gin.go

@@ -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}
 	})
 
 	//处理消息接收以及回复

+ 1 - 1
examples/http/http.go

@@ -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}
 	})
 
 	//处理消息接收以及回复