mirror of
https://github.com/201206030/novel-cloud.git
synced 2025-06-25 22:36:38 +00:00
代码优化
This commit is contained in:
@ -1,9 +1,6 @@
|
||||
package com.java2nb.novel.book.controller;
|
||||
|
||||
import com.java2nb.novel.book.entity.Book;
|
||||
import com.java2nb.novel.book.entity.BookCategory;
|
||||
import com.java2nb.novel.book.entity.BookContent;
|
||||
import com.java2nb.novel.book.entity.BookIndex;
|
||||
import com.java2nb.novel.book.entity.*;
|
||||
import com.java2nb.novel.book.service.BookService;
|
||||
import com.java2nb.novel.book.vo.BookCommentVO;
|
||||
import com.java2nb.novel.common.bean.PageBean;
|
||||
@ -106,7 +103,7 @@ public class BookController {
|
||||
* */
|
||||
@ApiOperation("书籍评论列表分页查询接口")
|
||||
@GetMapping("listCommentByPage")
|
||||
public ResultBean<List<BookCommentVO>> listCommentByPage(@ApiParam("小说ID") @RequestParam("bookId") Long bookId, @ApiParam("当前页码") @RequestParam(value = "curr", defaultValue = "1") int page, @ApiParam("分页大小") @RequestParam(value = "limit", defaultValue = "5") int pageSize) {
|
||||
public ResultBean<PageBean<BookComment>> listCommentByPage(@ApiParam("小说ID") @RequestParam("bookId") Long bookId, @ApiParam("当前页码") @RequestParam(value = "curr", defaultValue = "1") int page, @ApiParam("分页大小") @RequestParam(value = "limit", defaultValue = "5") int pageSize) {
|
||||
return ResultBean.ok(bookService.listBookCommentByPage(bookId,page,pageSize));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user