From 1dcd9682a519cf28f584ce3368dd72f6fd3288b5 Mon Sep 17 00:00:00 2001 From: joylink_zhangsai <1021828630@qq.com> Date: Mon, 17 Jul 2023 16:16:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=A0=B9=E6=8D=AEid=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=86=B3=E7=AD=96=E4=BF=A1=E6=81=AF=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../joylink/xiannccda/controller/AlertTipController.java | 7 +++++++ 1 file changed, 7 insertions(+) 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 = "报警提示信息分页")