package com.lesingle.creation.dto.role;

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

    @NotBlank(message = "角色名称不能为空")
    @Schema(description = "角色名称", example = "管理员")
    private String name;

    @NotBlank(message = "角色编码不能为空")
    @Schema(description = "角色编码", example = "admin")
    private String code;

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

    @Schema(description = "权限 ID 列表")
    private List<Long> permissionIds;
}
