mirror of
https://github.com/201206030/novel-cloud.git
synced 2025-04-27 01:40:50 +00:00
v1.3.0发布
This commit is contained in:
parent
9b8f5a177e
commit
3bc812d777
@ -60,7 +60,7 @@ public interface BookApi {
|
||||
* @return true:评论成功,false:评论失败
|
||||
* */
|
||||
@PostMapping("api/book/addBookComment")
|
||||
boolean addBookComment(@RequestParam("userId") Long userId,@RequestParam("comment") BookComment comment);
|
||||
boolean addBookComment(@RequestParam("userId") Long userId,@RequestBody BookComment comment);
|
||||
|
||||
/**
|
||||
* 分页查询用户评论
|
||||
|
@ -76,7 +76,7 @@ public class BookApi {
|
||||
* @param comment 评论数据
|
||||
* */
|
||||
@PostMapping("addBookComment")
|
||||
boolean addBookComment(Long userId, BookComment comment){
|
||||
boolean addBookComment(@RequestParam("userId") Long userId, @RequestBody BookComment comment){
|
||||
bookService.addBookComment(userId,comment);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user