use of io.github.tesla.ops.common.Pageable in project tesla by linking12.
the class UserController method list.
@GetMapping("/list")
@ResponseBody
Pageable list(@RequestParam Map<String, Object> params) {
// 查询列表数据
Query query = new Query(params);
List<UserDO> sysUserList = userService.list(query);
int total = userService.count(query);
Pageable pageUtil = new Pageable(sysUserList, total);
return pageUtil;
}
Aggregations