package org.dromara.mall.promotion.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * 营销中心自动配置类
 * 主要用于扫描营销中心模块的组件
 *
 * @author pengles
 */
@Slf4j
@Configuration
@ComponentScan(basePackages = "org.dromara.mall.promotion")
@ConditionalOnProperty(prefix = "ruoyi.mall.promotion", name = "enabled", havingValue = "true", matchIfMissing = true)
public class MallPromotionAutoConfiguration {

    public MallPromotionAutoConfiguration() {
        log.info("营销中心模块已启用");
    }
}
