package com.whyc.controller;
|
|
import com.whyc.dto.Response;
|
import com.whyc.pojo.UserInf;
|
import com.whyc.service.HomePageService;
|
import com.whyc.util.ActionUtil;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import javax.annotation.Resource;
|
|
@RestController
|
@RequestMapping("HomePage")
|
@Api(tags = "首页-告警")
|
public class HomePageController {
|
@Resource
|
private HomePageService service;
|
|
@RequestMapping("/getDataMap")
|
@ApiOperation(value = "获取告警")
|
public Response getDataMap(){
|
UserInf userInf = ActionUtil.getUser();
|
return service.getDataMap(userInf.getUId().intValue());
|
}
|
}
|