package com.zt.plat.module.base.api.materialclasses.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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

/**
 * 物料分类树 Response DTO
 */
@Data
public class MaterialClassesTreeRespDTO {

    @Schema(description = "主键ID", example = "1001")
    private Long id;

    @Schema(description = "父级ID", example = "0")
    private Long parentId;

    @Schema(description = "分类编码", example = "CL-001")
    private String code;

    @Schema(description = "分类名称", example = "原材料")
    private String name;

    @Schema(description = "分类级别")
    private Long level;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "子节点")
    private List<MaterialClassesTreeRespDTO> children = new ArrayList<>();
}
