package com.tykj.dev.device.library.subject.vo;

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

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

/**
 * @author dengdiyi
 */
@Data
@ApiModel("单据显示类")
public class Script {

    @ApiModelProperty(value = "型号")
    private String model;

    @ApiModelProperty(value = "类型")
    private String type;

    @ApiModelProperty(value = "装备名称")
    private String name;

    @ApiModelProperty(value = "装备序列号")
    private String seqNumber;

    @ApiModelProperty(value = "密级")
    private String secretLevel;

    @ApiModelProperty(value = "可见范围")
    private String invisibleRange;

    private String allotType;

    private Integer allotTypeNum;

    @ApiModelProperty(value = "数量")
    private Integer num;

    @ApiModelProperty(value = "列装Id")
    private Integer id;

    @ApiModelProperty(value = "父列装Id")
    private Integer partParentId;

    @ApiModelProperty(value = "备注")
    private String remark;

    List<Script> childs = new ArrayList<>();

    public void addChildNode(Script script) {
        childs.add(script);
    }
}
