mirror of
https://github.com/201206030/novel-cloud.git
synced 2025-06-24 14:06:39 +00:00
修复部分分页接口的查询bug
This commit is contained in:
@ -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);
|
||||
|
||||
/**
|
||||
* 查询网络图片的小说
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user