package com.sptg.iot.api.feigns;

import com.sptg.iot.api.entity.IotSysConf;
import com.sptg.iot.api.feigns.fallback.IotSysConfFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zwx
 * @create 2020/10/20 9:50
 */
@FeignClient(value = "smart-house-iot", fallbackFactory = IotSysConfFeignFallbackFactory.class)
public interface IotSysConfFeign {

    /**
     * 功能描述:根据Id查找系统对接配置
     * @param id 必填
     * @return Device
     *
     *
     */
    @GetMapping(value = "/iot/sysConf/findSysConfById/{id}")
    IotSysConf findSysConfById(@PathVariable(value = "id") Long id);
}
