//package com.huatek.busi.controller;
//
//import java.util.List;
//import java.util.Map;
//
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import com.alibaba.dubbo.config.annotation.Reference;
//import com.huatek.busi.constant.ApiConstant.Tags;
//import com.huatek.busi.service.BusiEqmWarningService;
//import com.huatek.busi.vo.BusiEqmWarningVo;
//import com.huatek.torch.frame.tools.ConstantUtil;
//import com.huatek.torch.frame.tools.ResultUtil;
//
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//
///**
// * 主界面告警数据API接口
// * 
// * @author anker_cheng
// * @date 2019/07/09
// */
//@Api(tags = {Tags.INDEX_WARNING_DATA})
//@RestController
//@RequestMapping("/api/indexWarningData")
//public class BusiWarningDataController {
//
//    @Reference(check = false)
//    private BusiEqmWarningService busiEqmWarningService;
//
//    @ApiOperation(value = "变压器类报警", response = BusiEqmWarningVo.class)
//    @GetMapping(value = "/transformer")
//    public Map<String, Object> transformerWarning() {
//        List<BusiEqmWarningVo> transformerWarningList = busiEqmWarningService.findWarningList("021");
//        return ResultUtil.put(ConstantUtil.REQUEST_SUCCESS, "", transformerWarningList);
//    }
//
//    @ApiOperation(value = "GIS类报警", response = BusiEqmWarningVo.class)
//    @GetMapping(value = "/gis")
//    public Map<String, Object> gisWarning() {
//        List<BusiEqmWarningVo> gisWarningList = busiEqmWarningService.findWarningList("024");
//        return ResultUtil.put(ConstantUtil.REQUEST_SUCCESS, "", gisWarningList);
//    }
//
//    @ApiOperation(value = "出场线类报警", response = BusiEqmWarningVo.class)
//    @GetMapping(value = "/arrester")
//    public Map<String, Object> arresterWarning() {
//        List<BusiEqmWarningVo> arresterWarningList = busiEqmWarningService.findWarningList("023");
//        return ResultUtil.put(ConstantUtil.REQUEST_SUCCESS, "", arresterWarningList);
//    }
//
//    @ApiOperation(value = "测温类报警", response = BusiEqmWarningVo.class)
//    @GetMapping(value = "/temperature")
//    public Map<String, Object> temperatureWarning() {
//        List<BusiEqmWarningVo> temperatureWarningList = busiEqmWarningService.findWarningList("026");
//        return ResultUtil.put(ConstantUtil.REQUEST_SUCCESS, "", temperatureWarningList);
//    }
//
//    @ApiOperation(value = "其他类报警", response = BusiEqmWarningVo.class)
//    @GetMapping(value = "/other")
//    public Map<String, Object> otherWarning() {
//        List<BusiEqmWarningVo> otherWarningList = busiEqmWarningService.findOtherWarningList();
//        return ResultUtil.put(ConstantUtil.REQUEST_SUCCESS, "", otherWarningList);
//    }
//}
