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

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

/**
 * @author qijian
 * @version 1.0.0
 * @date 2022年10月24日 20:13
 */

@FeignClient(
        value = ServerInfo.PREPARE_BOOT,//对应模块名
        path = "/specialAnalysisIndexOverview",//对应controller请求类
        fallbackFactory = SpecialAnalysisFeignClientFallbackFactory.class//服务降级处理类
)
public interface SpecialAnalysisFeignClient {

    @PostMapping("hanlder")
    HttpResult<Boolean> hanlder(@RequestBody LineParam jobParam);
}
