我写个get接口,用来分页的,前端发送过来数据,根据数据进行分页
```java
@GetMapping("/getQueryPage/{currentPage}/{pageSize}")
public ResultObject getQueryPage(@PathVariable("currentPage") int currentPage,
@PathVariable("pageSize") int pageSize, Book book){
System.out.println(book);
IPage<Book> ipage= bookService.getQueryPage(currentPage,pageSize,book);
// ResultObject r = new ResultObject(true,ipage);
return new ResultObject(true,ipage);
}
下图是使用工具发送请求
![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/904702655566135.png "#left")