yxh 4 лет назад
Родитель
Сommit
4290ca7290
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 1
      api/v1/system/sys_user.go
  2. 1 0
      internal/app/system/controller/sys_user.go

+ 1 - 1
api/v1/system/sys_user.go

@@ -39,7 +39,7 @@ type UserSearchReq struct {
 	DeptIds  []int64 //所属部门id数据
 	Mobile   string  `p:"mobile"`
 	Status   string  `p:"status"`
-	KeyWords string  `p:"userName"`
+	KeyWords string  `p:"keyWords"`
 	commonApi.PageReq
 }
 

+ 1 - 0
internal/app/system/controller/sys_user.go

@@ -115,6 +115,7 @@ func (c *userController) List(ctx context.Context, req *system.UserSearchReq) (r
 		return
 	}
 	res = new(system.UserSearchRes)
+	res.Total = total
 	res.UserList, err = service.User().GetUsersRoleDept(ctx, userList)
 	return
 }