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<HwMonitorUnit> list = hwMonitorUnitService.selectHwMonitorUnitList(hwMonitorUnit);
        return getDataTable(list);
    }

}
