package com.repair.model.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author: binguo
 * @Date: 2023/4/18 星期二 9:54
 * @Description: com.video.model.vo
 * @Version: 1.0
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Builder
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "物品耗材", description = "")
public class RepairConsumeypeTreeVo {
    @ApiModelProperty(value = "物品ID")
    private int id;
    @ApiModelProperty(value = "校区ID")
    private int schoolId;
    @ApiModelProperty(value = "上级物品ID")
    private int parentId;
    @ApiModelProperty(value = "上级物品名称")
    private String parentName;
    @ApiModelProperty(value = "物品名称")
    private String name;
    @ApiModelProperty(value = "物品价格")
    private BigDecimal price;
    @ApiModelProperty(value = "物品数量1")
    private int number;
    @ApiModelProperty(value = "子级耗材")
    private List<RepairConsumeypeTreeVo> children;
}
