zyh
This commit is contained in:
parent
9abbaea73e
commit
f4d4047b90
|
@ -48,12 +48,11 @@ public class TBookCommentController {
|
|||
return Result.ok(TBookCommentConvert.INSTANCE.convert(entity));
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
@PostMapping("/comment")
|
||||
@Operation(summary = "保存")
|
||||
@PreAuthorize("hasAuthority('maku:t_book_comment:save')")
|
||||
public Result<String> save(@RequestBody TBookCommentVO vo){
|
||||
tBookCommentService.save(vo);
|
||||
|
||||
return Result.ok();
|
||||
}
|
||||
|
||||
|
|
|
@ -54,9 +54,6 @@ public class TBookController {
|
|||
TBookEntity entity = tBookService.getByName(bookName);
|
||||
return Result.ok(entity);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@GetMapping("page")
|
||||
@Operation(summary = "分页")
|
||||
@PreAuthorize("hasAuthority('maku:t_book:page')")
|
||||
|
@ -65,8 +62,6 @@ public class TBookController {
|
|||
|
||||
return Result.ok(page);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("{id}")
|
||||
@Operation(summary = "信息")
|
||||
// @PreAuthorize("hasAuthority('maku:t_book:info')")
|
||||
|
@ -74,7 +69,6 @@ public class TBookController {
|
|||
TBookEntity entity = tBookService.getById(id);
|
||||
return Result.ok(TBookConvert.INSTANCE.convert(entity));
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
@Operation(summary = "保存")
|
||||
@PreAuthorize("hasAuthority('maku:t_book:save')")
|
||||
|
|
Loading…
Reference in New Issue
Block a user