package com.lesingle.creation.dto.permission;

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

import jakarta.validation.constraints.NotBlank;
import java.util.List;

/**
 * 创建权限 DTO
 */
@Data
@Schema(description = "创建权限请求")
public class CreatePermissionDTO {

    @NotBlank(message = "权限名称不能为空")
    @Schema(description = "权限名称", example = "用户创建")
    private String name;

    @NotBlank(message = "权限编码不能为空")
    @Schema(description = "权限编码", example = "user:create")
    private String code;

    @NotBlank(message = "资源名称不能为空")
    @Schema(description = "资源名称", example = "user")
    private String resource;

    @NotBlank(message = "操作类型不能为空")
    @Schema(description = "操作类型", example = "create")
    private String action;

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