package com.ho.xxljob.feignclient;

import com.ho.common.tools.exception.BaseResponseCode;
import com.ho.common.tools.exception.BusinessException;
import com.ho.common.tools.exception.DataResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author fancl
 * @desc:
 * @date 2023/5/16
 */
@Component
@Slf4j
public class FileFeignClientFallback implements FileFeignClient{

    @Override
    public DataResult jobStationWeathers() {
        log.error("FileFeignClientFallback.jobStationWeathers error!");
        throw new BusinessException(BaseResponseCode.FEIGN_CALL_FAIL);
    }
}
