lxw
2023-05-25 f3c27fb78447449a950ba73c5e72ceda64ad8a12
src/main/java/com/whyc/controller/HomePageController.java
@@ -3,9 +3,11 @@
import com.whyc.dto.Response;
import com.whyc.pojo.UserInf;
import com.whyc.service.HomePageService;
import com.whyc.service.ServerStateService;
import com.whyc.util.ActionUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -17,8 +19,10 @@
public class HomePageController {
    @Resource
    private HomePageService service;
    @Resource
    private ServerStateService serverStateService;
    @RequestMapping("/getDataMap")
    @GetMapping("/getDataMap")
    @ApiOperation(value = "获取告警")
    public Response getDataMap(){
        UserInf userInf = ActionUtil.getUser();