|
|
|
|
@ -1,16 +1,17 @@
|
|
|
|
|
package com.ruoyi.common.core.domain.entity;
|
|
|
|
|
|
|
|
|
|
import javax.validation.constraints.NotBlank;
|
|
|
|
|
import javax.validation.constraints.Size;
|
|
|
|
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
|
|
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
|
|
|
import com.ruoyi.common.annotation.Excel;
|
|
|
|
|
import com.ruoyi.common.annotation.Excel.ColumnType;
|
|
|
|
|
import com.ruoyi.common.core.domain.BaseEntity;
|
|
|
|
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
|
|
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
|
|
|
|
|
|
|
|
import javax.validation.constraints.NotBlank;
|
|
|
|
|
import javax.validation.constraints.Size;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 角色表 sys_role
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @author ruoyi
|
|
|
|
|
*/
|
|
|
|
|
public class SysRole extends BaseEntity
|
|
|
|
|
@ -59,6 +60,16 @@ public class SysRole extends BaseEntity
|
|
|
|
|
/** 部门组(数据权限) */
|
|
|
|
|
private Long[] deptIds;
|
|
|
|
|
|
|
|
|
|
private String tenantId;
|
|
|
|
|
|
|
|
|
|
public String getTenantId() {
|
|
|
|
|
return tenantId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setTenantId(String tenantId) {
|
|
|
|
|
this.tenantId = tenantId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public SysRole()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
@ -203,7 +214,7 @@ public class SysRole extends BaseEntity
|
|
|
|
|
{
|
|
|
|
|
this.deptIds = deptIds;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String toString() {
|
|
|
|
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
|
|
|
|