refactor🎨: 调整对象定义方式

This commit is contained in:
zhangwenjian committed 2021-06-03 09:31:10 +08:00
1 parent 107a8d8f90
commit 9a49700d09
8 files changed
+75 -75

No files matched your search

+2 -1
View File
@@ -1,6 +1,7 @@
package apis
import (
"github.com/gin-gonic/gin/binding"
"go-admin/app/admin/models"
"net/http"
@@ -21,7 +22,7 @@ func (e SysLoginLog) GetSysLoginLogList(c *gin.Context) {
d := new(dto.SysLoginLogSearch)
err := e.MakeContext(c).
MakeOrm().
Bind(d).
Bind(d, binding.Form).
MakeService(&s.Service).
Errors
if err != nil {