package com.njcn.prepare.harmonic.api.line;

import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.prepare.harmonic.api.line.fallback.DistortionRateFeignClientFallbackFactory;
import com.njcn.prepare.harmonic.pojo.param.LineParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 谐波畸变率
 * @author xiaoyao
 * @version 1.0.0
 * @createTime 2022/11/4 15:58
 */
@FeignClient(
        value = ServerInfo.PREPARE_BOOT,
        path = "/harmonicOverLimit",
        fallbackFactory = DistortionRateFeignClientFallbackFactory.class)
public interface DistortionRateFeignClient {

    @PostMapping("/harmonicThdDay")
    HttpResult<Boolean> harmonicThdDay(@RequestBody @Validated LineParam lineParam);
}
