修复部分分页接口的查询bug

This commit is contained in:
xiongxiaoyang
2021-02-04 23:59:26 +08:00
parent d22200b8c7
commit 19d4c6b778
22 changed files with 151 additions and 1105 deletions

View File

@ -31,7 +31,7 @@ public class NewsController {
* */
@GetMapping("listByPage")
public ResultBean listByPage(@RequestParam(value = "curr", defaultValue = "1") int page, @RequestParam(value = "limit", defaultValue = "5") int pageSize){
return ResultBean.ok(new PageInfo<>(newsService.listByPage(page,pageSize)));
return ResultBean.ok(newsService.listByPage(page,pageSize));
}