mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-21 18:20:50 +00:00
简化代码生成
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user