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 CreatePermissionDto {

    @NotBlank(message = "权限名称不能为空")
    @Schema(description = "权限名称")
    private String name;

    @NotBlank(message = "权限编码不能为空")
    @Schema(description = "权限编码（格式：resource:action）")
    private String code;

    @Schema(description = "资源")
    private String resource;

    @Schema(description = "操作")
    private String action;

    @Schema(description = "描述")
    private String description;
}
