From d2b173cabecbab723d0c1fcf70b2ae4346960e67 Mon Sep 17 00:00:00 2001 From: xins Date: Thu, 31 Aug 2023 17:51:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8B=A5=E4=BE=9D=E5=BE=AE=E6=9C=8D=E5=8A=A11.?= =?UTF-8?q?07=E7=89=88=E6=9C=AC=EF=BC=8C=E5=A2=9E=E5=8A=A0HwAppController?= =?UTF-8?q?=EF=BC=8C=E7=94=A8=E4=BA=8E=E6=89=8B=E6=9C=BA=E7=AB=AF=E7=9A=84?= =?UTF-8?q?controller?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/controller/HwAppController.java | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/controller/HwAppController.java diff --git a/ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/controller/HwAppController.java b/ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/controller/HwAppController.java new file mode 100644 index 0000000..e0b64bb --- /dev/null +++ b/ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/controller/HwAppController.java @@ -0,0 +1,40 @@ +package com.ruoyi.business.controller; + +import com.ruoyi.business.domain.HwMonitorUnit; +import com.ruoyi.business.service.IHwMonitorUnitService; +import com.ruoyi.common.core.web.controller.BaseController; +import com.ruoyi.common.core.web.page.TableDataInfo; +import com.ruoyi.common.security.annotation.RequiresPermissions; +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.RestController; + +import java.util.List; + +/** + * @Description: 移动端Controller + * @ClassName: HwAppController + * @Date :2023-08-31 17:46 + * @Version :1.0 + */ +@RestController +@RequestMapping("/app") +public class HwAppController extends BaseController { + + @Autowired + private IHwMonitorUnitService hwMonitorUnitService; + + /** + * 查询监控单元列表 + */ + @RequiresPermissions("business:monitorUnit:list") + @GetMapping("/monitorUnit/list") + public TableDataInfo monitorUnitList(HwMonitorUnit hwMonitorUnit) + { + startPage(); + List list = hwMonitorUnitService.selectHwMonitorUnitList(hwMonitorUnit); + return getDataTable(list); + } + +}