package com.yuchen.saas.manage.system.api.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.nest.springwrap.core.tenant.mp.TenantEntity;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * <p>
 * 给角色设置默认权限组关联表
 * </p>
 *
 * @author miaoqs
 * @since 2023-09-23
 */
@Data
public class NestRoleDefScopeGroupVO extends TenantEntity {

    /**
     * 角色名称
     */
    @NotNull(message = "角色名称不能为空")
    @ApiModelProperty(name = "name", value = "角色名称")
    private String name;
    /**
     * 角色组ID
     */
    @NotNull(message = "角色组不能为空")
    @ApiModelProperty(name = "roleGroupId", value = "角色组ID")
    private Long roleGroupId;
    /**
     * 权限组idList
     */
    @ApiModelProperty(name = "scopeGroupIdList", value = "权限组idList")
    private List<Long> scopeGroupIdList;

    /**
     * 是否默认分组:0否1是(是的话不能进行删除操作)
     */
    @ApiModelProperty(value = "是否默认分组:0否1是(是的话不能进行删除操作)")
    private Integer isDefault;
    /**
     * 组织id
     */
    @NotNull(message = "组织id不能为空")
    @ApiModelProperty(value = "组织id")
    private Long deptId;

}
