package com.ruoyi.web.modules.category.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import com.ruoyi.web.modules.category.support.SellerShopContextInterceptor;

/**
 * 商品分类 Web 配置
 */
@Configuration
public class CategoryWebConfig implements WebMvcConfigurer
{
    @Autowired
    private SellerShopContextInterceptor sellerShopContextInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry)
    {
        registry.addInterceptor(sellerShopContextInterceptor).addPathPatterns("/agri/seller/**");
    }
}
