|
@@ -192,7 +192,7 @@ public class BookController extends BaseController {
|
|
|
* @return
|
|
|
* @throws IOException
|
|
|
*/
|
|
|
- @PostMapping("/upload")
|
|
|
+ @PostMapping("/upload-8F80F0A4-E084-44C6-8659-61612C9D9D44")
|
|
|
public Result uploadFile(@RequestParam("file") MultipartFile file, Long bookId) throws IOException {
|
|
|
if (file.isEmpty() || bookId == null || bookId < 100_0000) {
|
|
|
return Result.failure(ResultCode.PARAMERROR);
|
|
@@ -206,6 +206,11 @@ public class BookController extends BaseController {
|
|
|
return Result.success("添加成功");
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("deleteUpload-8F80F0A4-E084-44C6-8659-61612C9D9D44")
|
|
|
+ public Result deleteUploadFile(Long id) {
|
|
|
+ return Result.success(bookService.deleteUploadFile(id));
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 后台-获取章节书籍内容
|
|
|
*
|
|
@@ -228,6 +233,16 @@ public class BookController extends BaseController {
|
|
|
return Result.byObject(bookService.updateBookContent(bookContentVO));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 后台-获取建议的 ID
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/getRecommendId-584CBBC1-DBD9-47A9-AAF1-EBC684B82B55")
|
|
|
+ public Result getRecommendId() {
|
|
|
+ return Result.byObject(bookService.getRecommendId());
|
|
|
+ }
|
|
|
+
|
|
|
@Autowired
|
|
|
private BlockCacheGuava blockCacheGuava;
|
|
|
|
|
@@ -236,7 +251,7 @@ public class BookController extends BaseController {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
- @GetMapping("/updateBlockCache")
|
|
|
+ @GetMapping("/updateBlockCache-8AA34230-157C-4EF6-98CE-0D928B3DE9EF")
|
|
|
public Result updateBlockCache() {
|
|
|
blockCacheGuava.clearCache();
|
|
|
return Result.success();
|