package com.ho.datacollect.feignclient;

import com.ho.common.tools.exception.BaseResponseCode;
import com.ho.common.tools.exception.BusinessException;
import com.ho.flow.vo.Event;
import com.ho.flow.vo.req.event.EventQueryReqVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Description 调用flow-center失败
 * Author xueweizhi
 * Date 2023/3/07 10:49
 */
@Slf4j
@Component
public class DataCollectFlowFeignClientFallback implements DataCollectFlowFeignClient {

    @Override
    public Event selectEventByParams(EventQueryReqVO eventQueryReqVO) {
        log.error("调用 [FlowFeignClient.selectEventByParams] 异常!");
        throw new BusinessException(BaseResponseCode.FEIGN_CALL_FAIL);
    }
}
