whyclxw
2024-04-28 b25b814a949d2065a61fd3167206ffb51a57af65
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();