package com.njcn.event.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njcn.common.pojo.annotation.OperateInfo;
import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.enums.common.LogEnum;
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.common.utils.HttpResultUtil;
import com.njcn.device.pq.pojo.param.GridDiagramParam;
import com.njcn.event.api.fallback.EventDetailFeignClientFallbackFactory;
import com.njcn.event.api.fallback.RmpEventDetailFeignClientFallbackFactory;
import com.njcn.event.pojo.dto.EventCount;
import com.njcn.event.pojo.po.EventDetail;
import com.njcn.event.pojo.po.RmpEventDetailPO;
import com.njcn.event.pojo.vo.AdvanceEventDetailVO;
import com.njcn.event.pojo.vo.GeneralVO;
import com.njcn.web.pojo.param.BaseParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @author denghuajun
 * @version 1.0.0
 * @date 2022/3/16
 */
@FeignClient(value = ServerInfo.EVENT,path = "/rmpEventDetail",fallbackFactory = RmpEventDetailFeignClientFallbackFactory.class)
public interface RmpEventDetailFeignClient {


    /**
     * 获取暂降事件详细信息
     * @param eventId 暂态事件id
     * @author cdf
     * @date 2023/7/28
     */
    @GetMapping("/queryEventDetailByEventId")
    HttpResult<RmpEventDetailPO> queryEventDetailByEventId(@RequestParam("eventId")String eventId);

    @PostMapping("/getEventCount")
    HttpResult<List<EventCount>> getEventCount(@RequestBody GridDiagramParam param);
}
