package com.yuchen.saas.park.api.feign.service;

import com.yuchen.saas.park.api.dto.prevention.ScanPreventionDTO;
import com.yuchen.saas.park.api.feign.service.ScanPreventionFeignService;
import com.yuchen.saas.park.api.vo.park.WarningLevelVo;
import feign.hystrix.FallbackFactory;
import org.nest.springwrap.core.tool.api.R;
import org.springframework.stereotype.Component;


@Component
public class WarningCategoryFeignServiceFallback implements FallbackFactory<WarningCategoryFeignService> {

    @Override
    public WarningCategoryFeignService create(Throwable throwable) {
        return new WarningCategoryFeignService(){
            @Override
            public WarningLevelVo getWarningLevelInfo(String identity) {
                return new WarningLevelVo();
            }
        };
    }
}
