feat(qianduan): 优化笔记功能和图片处理
- 新增批量删除图片接口和功能- 实现笔记中图片的上传和删除 - 优化笔记保存时的图片处理逻辑 -调整分组展示和Markdown文件加载方式
This commit is contained in:
@@ -86,9 +86,13 @@ public class MarkdownController {
|
||||
}
|
||||
|
||||
@Operation(summary = "删除Markdown文件")
|
||||
@DeleteMapping("/{id}")
|
||||
public R<Void> deleteMarkdown(@PathVariable Long id) {
|
||||
if (markdownFileService.deleteMarkdownFile(id)) {
|
||||
@Parameters({
|
||||
@Parameter(name = "id", description = "Markdown文件ID", required = true),
|
||||
})
|
||||
@PostMapping("/delete")
|
||||
public R<Void> deleteMarkdown(String id) {
|
||||
long l = Long.parseLong(id);
|
||||
if (markdownFileService.deleteMarkdownFile(l)) {
|
||||
return R.success();
|
||||
}
|
||||
return R.fail();
|
||||
|
||||
Reference in New Issue
Block a user