赞
踩
@ApiOperation(value = "分页查看用户列表",notes = "分页查看用户列表")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", name = "pageNum", value = "当前页码",required = true),
@ApiImplicitParam(paramType = "query", name = "pageSize", value = "每页行数",required = true),
})
@PostMapping("/find/page")
public HttpResult find(int pageNum, int pageSize, @RequestBody SysUser sysUser){
Map<String, Object> map = new HashMap<>();
map.put("sysUser",sysUser);
PageRequest pageRequest = new PageRequest(pageNum, pageSize, map);
PageResult pageResult = sysUserService.findPage(pageRequest);
return HttpResult.ok(pageResult);
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。