package com.njcn.device.pms.api;

import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.device.pms.api.fallback.GwMonitorPushClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * pqs
 *
 * @author cdf
 * @date 2023/12/22
 */

@FeignClient(value = ServerInfo.DEVICE,
        path = "gwTerminalPush",
        contextId = "gwTerminalPush",
        fallbackFactory = GwMonitorPushClientFallbackFactory.class)
public interface GwMonitorPushFeignClient {

    /**
     * 定时推送国网监测点
     * @author cdf
     * @date 2023/12/22
     */
    @PostMapping("/pushMonitor")
    HttpResult<String> timeTaskPushMonitor(@RequestBody List<String> ids);


    /**
     * 定时推送国网监测点
     * @author cdf
     * @date 2023/12/22
     */
    @PostMapping("/pushMonitorOverLimit")
    HttpResult<Object> pushMonitorOverLimit(@RequestBody List<String> ids);
}
