package com.starry.admin.modules.system.vo;

import com.starry.admin.modules.system.entity.SysRoleEntity;
import com.starry.common.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.util.Set;

/**
 * @author admin
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SysRoleAddVo extends BaseEntity<SysRoleEntity> {

    private static final long serialVersionUID = 1L;


    private Long roleId;

    @NotBlank(message = "角色名称不能为空")
    private String roleName;

    private String description;

    private Integer status;

    private String dataScope;

    private boolean menuCheckStrictly;

    private boolean deptCheckStrictly;

    private String roleKey;

    private Long tenantId;

    /**
     * 菜单组
     */
    private Long[] menuIds;

    /**
     * 部门组（数据权限）
     */
    private Long[] deptIds;

    /**
     * 角色菜单权限
     */
    private Set<String> permissions;

}
