From 714e631ab7f5420c439f131e0ad4c11fe4d6ddbf Mon Sep 17 00:00:00 2001 From: NoahLan <6995syu@163.com> Date: Thu, 24 Aug 2023 10:19:46 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=B0=83=E6=95=B4api=E7=9A=84handler,?= =?UTF-8?q?=E4=BF=AE=E5=A4=8Dparse=E5=A4=9A=E5=8F=82=E6=95=B0=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/handler.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/handler.tpl b/api/handler.tpl index 772768b..b7067ad 100644 --- a/api/handler.tpl +++ b/api/handler.tpl @@ -15,7 +15,7 @@ func {{.HandlerName}}(svcCtx *svc.ServiceContext) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { {{if .TransErr}}const transErr = true{{else}}const transErr = false{{end}} {{if .HasRequest}}var req types.{{.RequestType}} - if err := httpx.Parse(r, &req, true); err != nil { + if err := httpx.Parse(r, &req); err != nil { statusz.ResponseHandler(r, w, transErr, nil, err) return }