package com.njcn.energy.pojo.api;

import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.energy.pojo.api.fallback.EleIntegrityFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * 类的介绍：
 *
 * @author xuyang
 * @version 1.0.0
 * @createTime 2022/4/20 15:08
 */
@FeignClient(value = ServerInfo.ENERGY,path = "/integrity",fallbackFactory = EleIntegrityFallbackFactory.class)
public interface EleIntegrityFeignClient {

    @PostMapping("/getPowerLineId")
    HttpResult<List<String>> getPowerLineId();

    @PostMapping("/getAirLineId")
    HttpResult<List<String>> getAirLineId();

}
