单点监控-首页数据
This commit is contained in:
@ -0,0 +1,43 @@
|
||||
package com.xzzn.web.controller.ems;
|
||||
|
||||
import com.xzzn.common.core.controller.BaseController;
|
||||
import com.xzzn.common.core.domain.AjaxResult;
|
||||
import com.xzzn.ems.service.IEmsSiteService;
|
||||
import com.xzzn.ems.service.IHomePageService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
*
|
||||
* 站点信息
|
||||
*
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/ems/homePage")
|
||||
public class EmsHomePageController extends BaseController{
|
||||
|
||||
@Autowired
|
||||
private IHomePageService homePageService;
|
||||
@Autowired
|
||||
private IEmsSiteService emsSiteService;
|
||||
|
||||
/**
|
||||
* 首页看板数据
|
||||
*/
|
||||
@GetMapping("/dataList")
|
||||
public AjaxResult list()
|
||||
{
|
||||
return success(homePageService.getSiteVo());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取所有站点
|
||||
*/
|
||||
@GetMapping("/getAllSites")
|
||||
public AjaxResult getAllSites()
|
||||
{
|
||||
return success(emsSiteService.getAllSites());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.xzzn.web.controller.ems;
|
||||
|
||||
import com.xzzn.common.core.controller.BaseController;
|
||||
import com.xzzn.common.core.domain.AjaxResult;
|
||||
import com.xzzn.ems.service.ISingleSiteService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
*
|
||||
* 单站监控
|
||||
*
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/ems/siteMonitor")
|
||||
public class EmsSiteMonitorController extends BaseController{
|
||||
|
||||
@Autowired
|
||||
private ISingleSiteService iSingleSiteService;
|
||||
|
||||
/**
|
||||
* 获取单站首页数据
|
||||
*/
|
||||
@GetMapping("/homeView")
|
||||
public AjaxResult getSingleSiteViewInfo(@RequestParam Long siteId)
|
||||
{
|
||||
return success(iSingleSiteService.getSiteMonitorDataVo(siteId));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user