package com.sptg.permissions.api.feigns.fallback;

import com.sptg.common.core.beans.ResultBean;
import com.sptg.permissions.api.entity.CustInfoVerify;
import com.sptg.permissions.api.feigns.CustInfoVerifyFeign;
import com.sptg.permissions.api.feigns.FaceVerifyFeign;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

@Slf4j
@Component
public class FaceVerifyFeignFallbackFactory implements FallbackFactory<FaceVerifyFeign> {

    @Override
    public FaceVerifyFeign create(Throwable cause) {
        return new FaceVerifyFeign() {

            @Override
            public ResultBean verify(String faceUrl) {
                return null;
            }
        };
    }
}
