package com.lesingle.modules.sys.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
@Schema(description = "创建/更新菜单请求")
public class CreateMenuDto {

    @NotBlank(message = "菜单名称不能为空")
    @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;
}
