v1.3.0发布

This commit is contained in:
xiongxiaoyang 2020-06-07 18:56:43 +08:00
parent 9b8f5a177e
commit 3bc812d777
2 changed files with 2 additions and 2 deletions

View File

@ -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);
/**
* 分页查询用户评论

View File

@ -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;
}