package io.geekidea.boot.system.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 添加系统角色参数
 *
 * @author geekidea
 * @since 2022-12-26
 */
@Data
@Schema(description = "添加系统角色参数")
public class SysRoleAddDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "角色名称")
    @NotBlank(message = "角色名称不能为空")
    @Length(max = 32, message = "角色名称长度超过限制")
    private String name;

    @Schema(description = "角色唯一编码")
    @Length(max = 100, message = "角色唯一编码长度超过限制")
    private String code;

    @Schema(description = "角色状态，0：禁用，1：启用")
    private Boolean status;

}


