feat:完善信息
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user