前后端一致修复

This commit is contained in:
linwenxiang
2021-02-19 16:50:57 +08:00
parent a4f8b11925
commit e04b5559bd
19 changed files with 176 additions and 84 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ type ObjectById struct {
func (s *ObjectById) Bind(ctx *gin.Context) error {
if ctx.Request.Method == http.MethodDelete {
err := ctx.Bind(s)
err := ctx.ShouldBind(&s.Ids)
if err != nil {
return err
}
@@ -21,7 +21,7 @@ func (s *ObjectById) Bind(ctx *gin.Context) error {
return nil
}
}
return ctx.BindUri(s)
return ctx.ShouldBindUri(s)
}
func (s *ObjectById) GetId() interface{} {