| | |
| | | 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; |
| | | |
| | |
| | | public class HomePageController { |
| | | @Resource |
| | | private HomePageService service; |
| | | @Resource |
| | | private ServerStateService serverStateService; |
| | | |
| | | @RequestMapping("/getDataMap") |
| | | @GetMapping("/getDataMap") |
| | | @ApiOperation(value = "获取告警") |
| | | public Response getDataMap(){ |
| | | UserInf userInf = ActionUtil.getUser(); |