package com.njcn.harmonic.api;

import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.device.pq.pojo.param.OnlineRateParam;
import com.njcn.harmonic.api.fallback.RStatLimitRateDFeignClientFallbackFactory;
import com.njcn.harmonic.pojo.excel.pollution.UserLinePollution;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(
        value = ServerInfo.HARMONIC,
        path = "/PollutionSubstation",
        fallbackFactory = RStatLimitRateDFeignClientFallbackFactory.class,
        contextId = "PollutionSubstation")
public interface PollutionSubstationClient {

    @PostMapping(value ="/getSumList")
    HttpResult<Map<String, UserLinePollution>> getSumList(@RequestBody OnlineRateParam.Info param);

}
