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

This commit is contained in:
xiaoyang
2021-04-01 21:51:30 +08:00
parent 57d0325e05
commit 45b4ce7b18
12 changed files with 73 additions and 54 deletions

View File

@ -3,6 +3,7 @@ package com.java2nb.novel.book.api;
import com.java2nb.novel.book.entity.Book;
import com.java2nb.novel.book.entity.BookComment;
import com.java2nb.novel.book.vo.BookCommentVO;
import com.java2nb.novel.common.bean.PageBean;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@ -70,7 +71,7 @@ public interface BookApi {
* @return 评论数据
* */
@GetMapping("api/book/listUserCommentByPage")
List<BookComment> listUserCommentByPage(@RequestParam("userId") Long userId,@RequestParam("page") int page, @RequestParam("pageSize") int pageSize);
PageBean<BookComment> listUserCommentByPage(@RequestParam("userId") Long userId, @RequestParam("page") int page, @RequestParam("pageSize") int pageSize);
/**
* 查询网络图片的小说

View File

@ -3,6 +3,7 @@ package com.java2nb.novel.book.api.fallback;
import com.java2nb.novel.book.api.BookApi;
import com.java2nb.novel.book.entity.Book;
import com.java2nb.novel.book.entity.BookComment;
import com.java2nb.novel.common.bean.PageBean;
import java.util.ArrayList;
import java.util.Date;
@ -43,8 +44,8 @@ public class BookApiFallback implements BookApi {
}
@Override
public List<BookComment> listUserCommentByPage(Long userId, int page, int pageSize) {
return new ArrayList<>();
public PageBean<BookComment> listUserCommentByPage(Long userId, int page, int pageSize) {
return new PageBean<>(new ArrayList<>());
}
@Override