diff --git a/src/main/java/club/joylink/xiannccda/controller/AlertTipController.java b/src/main/java/club/joylink/xiannccda/controller/AlertTipController.java index 3bf28fe..f098dc1 100644 --- a/src/main/java/club/joylink/xiannccda/controller/AlertTipController.java +++ b/src/main/java/club/joylink/xiannccda/controller/AlertTipController.java @@ -54,6 +54,13 @@ public class AlertTipController { alertTipService.saveOrUpdate(saveDTO); } + @SecurityRequirement(name = "jwt") + @Operation(summary = "根据id查询数据") + @GetMapping("/id/{id}") + public AlertTip getById(@PathVariable int id) { + return alertTipRepository.getById(id); + } + @SecurityRequirement(name = "jwt") @Operation(summary = "分页查询报警提示信息") @ApiResponse(description = "报警提示信息分页")