package com.ycwl.basic.puzzle.fill.condition;

import com.fasterxml.jackson.databind.JsonNode;
import com.ycwl.basic.puzzle.fill.enums.ConditionType;
import org.springframework.stereotype.Component;

/**
 * 总是匹配策略(兜底规则)
 */
@Component
public class AlwaysConditionStrategy implements ConditionStrategy {

    @Override
    public boolean evaluate(JsonNode conditionValue, ConditionContext context) {
        return true;
    }

    @Override
    public String getSupportedType() {
        return ConditionType.ALWAYS.getCode();
    }
}
