package org.xyzh.achievement.checker.impl;

import org.springframework.stereotype.Component;
import org.xyzh.achievement.checker.AbstractAchievementChecker;
import org.xyzh.common.core.enums.AchievementConditionType;
import org.xyzh.common.core.enums.AchievementEventType;

/**
 * @description 浏览资源数量成就检测器
 * @filename ResourceViewChecker.java
 * @author yslg
 * @copyright xyzh
 * @since 2025-10-24
 */
@Component
public class ResourceViewChecker extends AbstractAchievementChecker {

    @Override
    protected AchievementConditionType getSupportedConditionType() {
        return AchievementConditionType.RESOURCE_VIEW_COUNT;
    }

    @Override
    protected AchievementEventType[] getSupportedEventTypes() {
        return new AchievementEventType[]{
            AchievementEventType.RESOURCE_VIEWED
        };
    }
}

