feat:完善信息

This commit is contained in:
henry
2022-01-25 11:45:53 +08:00
parent 26b58e3ca6
commit 932ed31450
13 changed files with 169 additions and 45 deletions

View File

@ -12,6 +12,7 @@ type Log struct{}
func (a *Log) Login(c *gin.Context) {
form := &struct {
api.TenantIDStringForm
Name string `json:"name" form:"name"`
api.PageForm
}{}
@ -19,6 +20,6 @@ func (a *Log) Login(c *gin.Context) {
api.APIFailure(err.(error))(c)
return
}
data, err := controller.NewLog()(api.GetSession()(c).(*session.Admin)).Login(form.Name, form.Page, form.PageSize)
data, err := controller.NewLog()(api.GetSession()(c).(*session.Admin)).Login(form.Convert(), form.Name, form.Page, form.PageSize)
api.APIResponse(err, data)(c)
}