From b8de9d8878c3bc0f2c30c282089979b91829be2d Mon Sep 17 00:00:00 2001 From: dengbiao Date: Tue, 20 Aug 2024 15:12:44 +0800 Subject: [PATCH] update --- README.md | 4 ++++ app/hdl/hdl_wx_open.go | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e0f959c..90f740b 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,11 @@ > swagger 命令行工具 go get -u github.com/swaggo/swag/cmd/swag + +//go版本1.16之前使用该命令 go install github.com/swaggo/swag/cmd/swag +//go版本1.16版本以及之后的版本使用该命令 +go install github.com/swaggo/swag/cmd/swag@latest > swagger 依赖 go get "github.com/swaggo/files" diff --git a/app/hdl/hdl_wx_open.go b/app/hdl/hdl_wx_open.go index d0c9d2b..2dd6a08 100644 --- a/app/hdl/hdl_wx_open.go +++ b/app/hdl/hdl_wx_open.go @@ -8,10 +8,10 @@ import ( ) type ReqWxMessage struct { - AppId string `json:"AppId"` - FromUserName string `json:"CreateTime"` - InfoType string `json:"InfoType"` - ComponentVerifyTicket string `json:"ComponentVerifyTicket"` // text | image | voice | shortvideo | location + AppID string `xml:"AppId"` + CreateTime int64 `xml:"CreateTime"` + InfoType string `xml:"InfoType"` + ComponentVerifyTicket string `xml:"ComponentVerifyTicket"` } func SetTicket(c *gin.Context) {