package com.fdkankan.gateway.factory;

import com.fdkankan.gateway.filter.AppAuthFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory;
import org.springframework.stereotype.Component;

/**
 * 第三方系统访问过滤器
 */
@Component
public class AuthFilterGatewayFilterFactory extends AbstractGatewayFilterFactory<Object> {

    @Autowired
    private AppAuthFilter appAuthFilter;

    @Override
    public GatewayFilter apply(Object filter) {
        return appAuthFilter;
    }
}


