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

import com.tykj.dev.misc.utils.JacksonUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author dengdiyi
 */
@Data
@ApiModel("单据存储类")
public class ScriptSaveVo {

    @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;

    @ApiModelProperty(value = "配发类型")
    private String allotType;

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

    @ApiModelProperty(value = "列装Id/维修装备Id")
    private Integer id;

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

    @ApiModelProperty(value = "维修记录Id")
    private Integer detailId;

    @ApiModelProperty(value = "配发类型数字")
    private String allotTypeNum;

    public String toJson(){
        return JacksonUtil.toJSon(this);
    }
}
