package research.loghunter.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

public class FileTreeDto {

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class ServerNode {
        private Long serverId;
        private String serverName;
        private int totalErrorCount;
        private List<PathNode> paths;
    }

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class PathNode {
        private String path;
        private int totalErrorCount;
        private List<FileNode> files;
    }

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class FileNode {
        private String filePath;
        private String fileName;
        private int errorCount;
        private int criticalCount;
        private int errorLevelCount;
        private int warnCount;
    }
}
