package com.sptg.iot.api.feigns;

import com.sptg.common.core.beans.ResultBean;
import com.sptg.iot.api.dto.IotAlarmThresholdDto;
import com.sptg.iot.api.feigns.fallback.IotAlarmThresholdFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author zwx
 * @create 2020/10/19 22:57
 */
@FeignClient(value = "smart-house-iot", fallbackFactory = IotAlarmThresholdFeignFallbackFactory.class)
public interface IotAlarmThresholdFeign {

    @PostMapping(value = "/iot/alarmThreshold/sync/list")
    public ResultBean<String> syncIotAlarmThresholdList(@RequestBody IotAlarmThresholdDto iotAlarmThresholdDto);

}
