package com.yhy.module.core.controller.admin.config.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;
import lombok.Data;

/**
 * 工程信息配置 Response VO
 */
@Schema(description = "管理后台 - 工程信息配置 Response VO")
@Data
public class ConfigProjectInfoRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long id;

    @Schema(description = "关联的行业节点ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long configTreeId;

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

    @Schema(description = "代号", example = "TAX_RATE")
    private String code;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "税率设置")
    private String name;

    @Schema(description = "内容配置")
    private Map<String, Object> content;

    @Schema(description = "排序号", example = "1")
    private Integer sortOrder;

    @Schema(description = "层级路径")
    private String[] path;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "子节点列表")
    private List<ConfigProjectInfoRespVO> children;
}
