package com.securitycontrol.entity.system.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.util.List;

/**
 * @author：cwchen
 * @date：2024-02-23-18:51
 * @version：1.0
 * @description：角色-vo
 */
@Data
public class RoleVo {

    @ApiModelProperty(value = "角色ID")
    private Integer roleId;

    @ApiModelProperty(value = "角色名称")
    @NotBlank(message = "角色名称不能为空")
    @Length(max = 30,message = "字符长度不能超过30个字符")
    private String roleName;

    @ApiModelProperty(value = "排序")
    @NotBlank(message = "排序不能为空")
    @Pattern(regexp = "[1-9]\\d{0,2}$|^1000",message = "排序为1-1000")
    private String roleSort;

    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "flag")
    private boolean flag;

    @ApiModelProperty(value = "类型")
    private Integer type;

    @ApiModelProperty(value = "菜单ID集合")
    private List<String> menuIds;
}
