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); + } + +}