From 920d98bebfc6625d277ca603ae8e9e9cbf31d11f Mon Sep 17 00:00:00 2001 From: whycxzp <glperry@163.com> Date: 星期三, 11 六月 2025 17:14:48 +0800 Subject: [PATCH] 告警诊断管理 --- src/main/java/com/whyc/controller/DeviceSpareController.java | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/whyc/controller/DeviceSpareController.java b/src/main/java/com/whyc/controller/DeviceSpareController.java index ae6df97..8bc06e3 100644 --- a/src/main/java/com/whyc/controller/DeviceSpareController.java +++ b/src/main/java/com/whyc/controller/DeviceSpareController.java @@ -5,11 +5,14 @@ import com.whyc.pojo.web_site.DeviceSpare; import com.whyc.service.DeviceSpareService; import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; + +import java.util.List; @RestController @RequestMapping("deviceSpare") @@ -20,9 +23,16 @@ private DeviceSpareService service; @GetMapping("getPage") + @ApiOperation("鍒嗛〉鏌ヨ") public Response<PageInfo<DeviceSpare>> getPage(@RequestParam Integer pageNum, @RequestParam Integer pageSize, @RequestParam(required = false) String type,@RequestParam(required = false) String name ) { return service.getPage(pageNum, pageSize,type,name); } + @GetMapping("getList") + @ApiOperation(tags = "鍛婅璇婃柇", value = "鑾峰彇鎵�鏈夋墍闇�宸ュ叿") + public Response<List<DeviceSpare>> getList(@RequestParam(required = false) String name) { + return service.getList(name); + } + } -- Gitblit v1.9.1