若依微服务1.07版本,增加HwAppController,用于手机端的controller

dev 1.0.7
xins 1 year ago
parent f205a21fc9
commit d2b173cabe

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