package shop.alien.entity.store.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 用户行为奖励规则树形节点VO
 *
 * @author system
 * @since 2025-01-XX
 */
@Data
@ApiModel(value = "RewardRuleTreeNodeVo", description = "用户行为奖励规则树形节点")
public class RewardRuleTreeNodeVo {

    @ApiModelProperty(value = "节点值")
    private String value;

    @ApiModelProperty(value = "节点标签")
    private String label;

    @ApiModelProperty(value = "是否禁用")
    private Boolean disabled;

    @ApiModelProperty(value = "子节点列表")
    private List<RewardRuleTreeNodeVo> children;

    public RewardRuleTreeNodeVo() {
        this.children = new ArrayList<>();
    }

    public RewardRuleTreeNodeVo(String value, String label, Boolean disabled) {
        this.value = value;
        this.label = label;
        this.disabled = disabled;
        this.children = new ArrayList<>();
    }
}

