//package com.tourism.webadmin.strategy;
//
///**
// * NotificationStrategyFactory 类。
// * <p>
// * 描述：
// *
// * @author huangwenwen
// * @date 2025/1/6
// */
//
//import com.tourism.webadmin.back.model.constant.NoticeType;
//import com.tourism.webadmin.strategy.impl.FocusNotificationStrategy;
//import org.springframework.context.ApplicationContext;
//
//
//import java.util.HashMap;
//import java.util.Map;
//
//public class NotificationStrategyFactory {
//    private static final Map<Integer, NotificationStrategy> STRATEGY_MAP = new HashMap<>();
//
//
//
//    public static NotificationStrategy getStrategy(int noticeType, ApplicationContext applicationContext) {
//        if (STRATEGY_MAP.get(noticeType) == null){
//            FocusNotificationStrategy focusNotificationStrategy = new FocusNotificationStrategy(applicationContext);
//            STRATEGY_MAP.put(NoticeType.NOTICE_FOCUS,focusNotificationStrategy);
//            return focusNotificationStrategy;
//        }
//        return STRATEGY_MAP.get(noticeType);
//    }
//}
