feat 操作日志功能更换bind方式

This commit is contained in:
wenjianzhang
2021-05-25 19:36:20 +08:00
parent 623e796c92
commit dd7b50e0fa
2 changed files with 11 additions and 17 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
package apis
import (
"github.com/gin-gonic/gin/binding"
"go-admin/app/admin/models"
"net/http"
@@ -20,7 +21,7 @@ func (e SysOperaLog) GetSysOperaLogList(c *gin.Context) {
req := new(dto.SysOperaLogSearch)
err := e.MakeContext(c).
MakeOrm().
Bind(req).
Bind(req, binding.Form).
MakeService(&s.Service).
Errors
if err != nil {
@@ -88,4 +89,4 @@ func (e SysOperaLog) DeleteSysOperaLog(c *gin.Context) {
return
}
e.OK(req.GetId(), "删除成功")
}
}