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

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.nest.springwrap.core.tenant.mp.TenantEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * <p>
 * 组织角色分组
 * </p>
 *
 * @author author
 * @since 2023-03-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("nest_org_role_group")
public class NestOrgRoleGroup extends TenantEntity {

    private static final long serialVersionUID = 1L;


    /**
     * 角色组名
     */
    @NotBlank
    @Size(max = 20)
    @ApiModelProperty(value = "角色组名")
    private String name;

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

    /**
     * 组织id
     */
    @ApiModelProperty(value = "组织id")
    private Long deptId;


}
