package com.dcs.hnyz.domain.condition;

import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;

/**
 * Condition
 * 条件接口
 * @author: hmy
 * @date: 2025/5/27 9:38
 */
@JsonTypeInfo(
        use = JsonTypeInfo.Id.NAME,
        include = JsonTypeInfo.As.PROPERTY,
        property = "type"
)
@JsonSubTypes({
        @JsonSubTypes.Type(value = ConditionItem.class, name = "item"),
        @JsonSubTypes.Type(value = ConditionGroup.class, name = "group")
})
public interface Condition {
}