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.PmsPowerDistributionareaClientFallbackFactory;
import com.njcn.device.pms.pojo.param.PowerDistributionareaParam;
import com.njcn.device.pms.pojo.po.PowerDistributionarea;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author clam
 * @date 2022/10/18
 */
@FeignClient(
        value = ServerInfo.DEVICE,
        path = "/pms/powerDistributionarea",
        contextId = "pms/powerDistributionarea",
        fallbackFactory = PmsPowerDistributionareaClientFallbackFactory.class)
public interface PmsPowerDistributionareaClient {

    @PostMapping("getPowerDistributionList")
    HttpResult<List<PowerDistributionarea>> getPowerDistributionList(@RequestBody PowerDistributionareaParam powerDistributionareaParam);

}
