From 9bc2791b26e88cae004018ee0e6cb7c116495cd6 Mon Sep 17 00:00:00 2001 From: wenjianzhang Date: Sat, 8 May 2021 17:02:56 +0800 Subject: [PATCH] =?UTF-8?q?fix=F0=9F=90=9B=20=E6=96=87=E4=BB=B6=E7=AE=A1?= =?UTF-8?q?=E7=90=86\=E5=86=85=E5=AE=B9=E7=AE=A1=E7=90=86\=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E7=A8=8B=E5=BA=8F\=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E7=9A=84=E5=B7=B2=E7=9F=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/dto/generate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/dto/generate.go b/common/dto/generate.go index 74c976b5..c5ed7fae 100644 --- a/common/dto/generate.go +++ b/common/dto/generate.go @@ -22,7 +22,7 @@ func (s *ObjectById) Bind(ctx *gin.Context) error { return err } if ctx.Request.Method == http.MethodDelete { - err = ctx.ShouldBind(&s.Ids) + err = ctx.ShouldBind(&s) if err != nil { log.Warnf("ShouldBind error: %s", err.Error()) return err