package com.lesingle.creation.dto.menu;

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

import jakarta.validation.constraints.NotBlank;

/**
 * 创建菜单 DTO
 */
@Data
@Schema(description = "创建菜单请求")
public class CreateMenuDTO {

    @NotBlank(message = "菜单名称不能为空")
    @Schema(description = "菜单名称", example = "用户管理")
    private String name;

    @Schema(description = "路由路径", example = "/system/user")
    private String path;

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

    @Schema(description = "组件路径", example = "system/user/index")
    private String component;

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

    @Schema(description = "权限编码", example = "user:read")
    private String permission;

    @Schema(description = "排序", example = "1")
    private Integer sort;
}
