package com.openhis.web.document.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.experimental.Accessors;

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

@Data
@Accessors(chain = true)
public class DirectoryNode {
    private String name;
    private int level;
    private DocDefinitionDto document;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private List<DirectoryNode> children = new ArrayList<>();
}

