package com.sptg.iot.api.feigns;

import com.sptg.common.core.beans.ResultBean;
import com.sptg.iot.api.entity.IotAepProduct;
import com.sptg.iot.api.feigns.fallback.IotAepProductFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * @author zwx
 * @create 2020/10/21 0:40
 */
@FeignClient(value = "smart-house-iot", fallbackFactory = IotAepProductFeignFallbackFactory.class)
public interface IotAepProductFeign {

    @GetMapping(value = "/iot/aepProduct/list")
    public ResultBean<List<IotAepProduct>> getList();

    @PostMapping(value = "/iot/aepProduct/sync")
    public ResultBean<String> syncAepProductList();
}
