简化代码生成

This commit is contained in:
linwenxiang
2020-09-22 20:39:11 +08:00
parent 72a876f37a
commit f3e0e4dbc6
6 changed files with 26 additions and 24 deletions
-2
View File
@@ -29,8 +29,6 @@ func IndexAction(m models.ActiveRecord, d dto2.Index, f func() interface{}) gin.
case *gorm.DB:
//查询列表
db := idb.(*gorm.DB)
err = c.Bind(req)
tools.HasError(err, "参数验证失败", 422)
err = req.Bind(c)
tools.HasError(err, "参数验证失败", 422)