|
@@ -154,7 +154,7 @@ public class BookController extends BaseController {
|
|
*/
|
|
*/
|
|
@GetMapping("/getSearchKeyword")
|
|
@GetMapping("/getSearchKeyword")
|
|
public Result<List<SearchKeyword>> getSearchKeywordBySex(String sex) {
|
|
public Result<List<SearchKeyword>> getSearchKeywordBySex(String sex) {
|
|
- return Result.byObject(bookService.getSearchKeywordBySex(sex));
|
|
|
|
|
|
+ return Result.success(bookService.getSearchKeywordBySex(sex));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -165,7 +165,7 @@ public class BookController extends BaseController {
|
|
*/
|
|
*/
|
|
@PostMapping("/getRecentReadByUserIdAndBookId")
|
|
@PostMapping("/getRecentReadByUserIdAndBookId")
|
|
public Result<UserRecentlyRead> getRecentReadByUserIdAndBookId(@RequestBody UserRecentlyRead userRecentlyRead) {
|
|
public Result<UserRecentlyRead> getRecentReadByUserIdAndBookId(@RequestBody UserRecentlyRead userRecentlyRead) {
|
|
- return Result.byObject(bookService.getRecentReadByUserIdAndBookId(userRecentlyRead));
|
|
|
|
|
|
+ return Result.success(bookService.getRecentReadByUserIdAndBookId(userRecentlyRead));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -176,7 +176,7 @@ public class BookController extends BaseController {
|
|
*/
|
|
*/
|
|
@PostMapping("/getRecentReadByUserId")
|
|
@PostMapping("/getRecentReadByUserId")
|
|
public Result<List<UserRecentlyRead>> getRecentReadByUserId(@RequestBody UserRecentReadVO userRecentlyRead) {
|
|
public Result<List<UserRecentlyRead>> getRecentReadByUserId(@RequestBody UserRecentReadVO userRecentlyRead) {
|
|
- return Result.byObject(bookService.getRecentReadByUserId(userRecentlyRead));
|
|
|
|
|
|
+ return Result.success(bookService.getRecentReadByUserId(userRecentlyRead));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -187,7 +187,7 @@ public class BookController extends BaseController {
|
|
*/
|
|
*/
|
|
@PostMapping("/getUserConsumerChapter")
|
|
@PostMapping("/getUserConsumerChapter")
|
|
public Result<List<Long>> getUserConsumerChapter(@RequestBody BookContentVO bookContentVO) {
|
|
public Result<List<Long>> getUserConsumerChapter(@RequestBody BookContentVO bookContentVO) {
|
|
- return Result.byObject(bookService.getUserConsumerChapter(bookContentVO));
|
|
|
|
|
|
+ return Result.success(bookService.getUserConsumerChapter(bookContentVO));
|
|
}
|
|
}
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|