refactor🎨: 调整对象定义方式
This commit is contained in:
1 parent
107a8d8f90
commit
9a49700d09
8 files changed
+75
-75
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user