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