package org.xyzh.common.vo;

import org.xyzh.common.dto.dept.TbSysDept;
import org.xyzh.common.dto.role.TbSysRole;
import org.xyzh.common.dto.user.TbSysUser;
import org.xyzh.common.dto.user.TbSysUserDeptRole;

import java.util.List;

public class UserDeptRoleVO {
    private List<TbSysDept> depts;
    private List<TbSysRole> roles;
    private List<TbSysUser> users;
    private List<TbSysUserDeptRole> userDeptRoles;


    // 扁平化字段，用于权限查询优化
    private String userID;
    private String username;
    private String deptID;
    private String deptName;
    private String deptDescription;
    private String parentID;
    private String parentName;
    private String parentDescription;
    private String roleID;
    private String roleName;
    private String roleDescription;
    private String deptPath;  // 部门路径，用于快速权限继承判断

    public List<TbSysDept> getDepts() {
        return depts;
    }

    public void setDepts(List<TbSysDept> depts) {
        this.depts = depts;
    }

    public List<TbSysRole> getRoles() {
        return roles;
    }

    public void setRoles(List<TbSysRole> roles) {
        this.roles = roles;
    }

    public List<TbSysUser> getUsers() {
        return users;
    }

    public void setUsers(List<TbSysUser> users) {
        this.users = users;
    }

    public String getUserID() {
      return userID;
    }

    public void setUserID(String userID) {
      this.userID = userID;
    }

    public String getUsername() {
      return username;
    }

    public void setUsername(String username) {
      this.username = username;
    }

    public String getDeptID() {
      return deptID;
    }

    public void setDeptID(String deptID) {
      this.deptID = deptID;
    }

    public String getDeptName() {
      return deptName;
    }

    public void setDeptName(String deptName) {
      this.deptName = deptName;
    }

    public String getDeptDescription() {
      return deptDescription;
    }

    public void setDeptDescription(String deptDescription) {
      this.deptDescription = deptDescription;
    }

    public String getParentID() {
      return parentID;
    }

    public void setParentID(String parentID) {
      this.parentID = parentID;
    }

    public String getParentName() {
      return parentName;
    }

    public void setParentName(String parentName) {
      this.parentName = parentName;
    }

    public String getParentDescription() {
      return parentDescription;
    }

    public void setParentDescription(String parentDescription) {
      this.parentDescription = parentDescription;
    }

    public String getRoleID() {
      return roleID;
    }

    public void setRoleID(String roleID) {
      this.roleID = roleID;
    }

    public String getRoleName() {
      return roleName;
    }

    public void setRoleName(String roleName) {
      this.roleName = roleName;
    }

    public String getRoleDescription() {
      return roleDescription;
    }

    public void setRoleDescription(String roleDescription) {
      this.roleDescription = roleDescription;
    }

    public String getDeptPath() {
      return deptPath;
    }

    public void setDeptPath(String deptPath) {
      this.deptPath = deptPath;
    }

    public List<TbSysUserDeptRole> getUserDeptRoles() {
      return userDeptRoles;
    }

    public void setUserDeptRoles(List<TbSysUserDeptRole> userDeptRoles) {
      this.userDeptRoles = userDeptRoles;
    }

}
