package com.yhy.module.core.controller.admin.workbench.vo.calcbaserate;

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

import java.util.List;

/**
 * 基数费率目录树节点 VO（工作台项目指引使用）
 *
 * @author yhy
 */
@Data
@Schema(description = "基数费率目录树节点 VO")
public class CalcBaseRateCatalogTreeRespVO {

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

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

    @Schema(description = "编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "ROOT")
    private String code;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "广东省")
    private String name;

    @Schema(description = "节点类型：root/province/content", requiredMode = Schema.RequiredMode.REQUIRED, example = "province")
    private String nodeType;

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