| | |
| | |
|
| | | import java.util.Set;
|
| | | import javax.validation.constraints.NotBlank;
|
| | | import javax.validation.constraints.NotNull;
|
| | | import javax.validation.constraints.Size;
|
| | |
|
| | | import com.baomidou.mybatisplus.annotation.FieldFill;
|
| | | import com.baomidou.mybatisplus.annotation.TableField;
|
| | | import org.apache.commons.lang3.builder.ToStringBuilder;
|
| | | import org.apache.commons.lang3.builder.ToStringStyle;
|
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel;
|
| | |
| | |
|
| | | /** 角色排序 */
|
| | | @Excel(name = "角色排序")
|
| | | private String roleSort;
|
| | | private Integer roleSort;
|
| | |
|
| | | /** 数据范围(1:所有数据权限;2:自定义数据权限;3:本部门数据权限;4:本部门及以下数据权限;5:仅本人数据权限) */
|
| | | @Excel(name = "数据范围", readConverterExp = "1=所有数据权限,2=自定义数据权限,3=本部门数据权限,4=本部门及以下数据权限,5=仅本人数据权限")
|
| | |
| | |
|
| | | /** 角色菜单权限 */
|
| | | private Set<String> permissions;
|
| | |
|
| | | /**租户id*/
|
| | | private Long tenantId;
|
| | |
|
| | | public Long getTenantId() {
|
| | | return tenantId;
|
| | | }
|
| | |
|
| | | public void setTenantId(Long tenantId) {
|
| | | this.tenantId = tenantId;
|
| | | }
|
| | |
|
| | | public SysRole()
|
| | | {
|
| | |
| | | this.roleKey = roleKey;
|
| | | }
|
| | |
|
| | | @NotBlank(message = "显示顺序不能为空")
|
| | | public String getRoleSort()
|
| | | @NotNull(message = "显示顺序不能为空")
|
| | | public Integer getRoleSort()
|
| | | {
|
| | | return roleSort;
|
| | | }
|
| | |
|
| | | public void setRoleSort(String roleSort)
|
| | | public void setRoleSort(Integer roleSort)
|
| | | {
|
| | | this.roleSort = roleSort;
|
| | | }
|