package com.lesingle.creation.vo.menu;

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

import java.time.LocalDateTime;
import java.util.List;

/**
 * 菜单树 VO
 */
@Data
@Schema(description = "菜单树响应")
public class MenuTreeVO {

    @Schema(description = "菜单 ID")
    private Long id;

    @Schema(description = "菜单名称")
    private String name;

    @Schema(description = "路由路径")
    private String path;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "组件路径")
    private String component;

    @Schema(description = "父菜单 ID")
    private Long parentId;

    @Schema(description = "权限编码")
    private String permission;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "子菜单列表")
    private List<MenuTreeVO> children;
}
