package com.iplatform.base.util.role; import com.iplatform.model.po.S_role; /** * 前端需要在用户管理中,展示用户已拥有的角色,因此角色应添加选中标记。 * @author 时克英 * @date 2022-12-15 */ public class SystemRole extends S_role { public boolean isFlag() { return flag; } // public boolean getFlag(){return flag;} public void setFlag(boolean flag) { this.flag = flag; } public String[] getMenuIds() { return menuIds; } public void setMenuIds(String[] menuIds) { this.menuIds = menuIds; } /** 添加角色,关联的菜单组 */ private String[] menuIds; /** 用户是否存在此角色标识 默认不存在 */ private boolean flag = false; public SystemRole(){} public SystemRole(S_role s_role){ this.setRole_id(s_role.getRole_id()); this.setData_scope(s_role.getData_scope()); this.setOrg_id(s_role.getOrg_id()); this.setRole_sort(s_role.getRole_sort()); this.setRole_key(s_role.getRole_key()); this.setDel_flag(s_role.getDel_flag()); this.setDept_check_strictly(s_role.getDept_check_strictly()); this.setMenu_check_strictly(s_role.getMenu_check_strictly()); this.setStatus(s_role.getStatus()); this.setRemark(s_role.getRemark()); this.setRole_name(s_role.getRole_name()); // 2023-10-18,字段已有,缺少类型属性 this.setType(s_role.getType()); } }