serv\web- 多租户修改
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
import { BaseDTO } from '../base';
|
||||
import { SysRole } from '../role';
|
||||
import { SysUserDeptRole } from '../user';
|
||||
|
||||
/**
|
||||
* 系统部门
|
||||
@@ -15,6 +16,8 @@ export interface SysDept extends BaseDTO {
|
||||
deptID?: string;
|
||||
/** 父部门ID */
|
||||
parentID?: string;
|
||||
/** 部门路径,格式:/root_department/dept_001/ */
|
||||
deptPath?: string;
|
||||
/** 部门名称 */
|
||||
name?: string;
|
||||
/** 部门描述 */
|
||||
@@ -30,13 +33,35 @@ export interface SysDept extends BaseDTO {
|
||||
/**
|
||||
* 部门角色VO
|
||||
*/
|
||||
export interface DeptRoleVO {
|
||||
/** 部门信息 */
|
||||
dept?: SysDept;
|
||||
/** 角色信息 */
|
||||
role?: SysRole;
|
||||
export interface UserDeptRoleVO {
|
||||
|
||||
depts?: SysDept[];
|
||||
roles?: SysRole[];
|
||||
userDeptRoles?: SysUserDeptRole[];
|
||||
|
||||
// 扁平化字段,用于权限查询优化
|
||||
/** 用户ID */
|
||||
userID?: string;
|
||||
/** 部门ID */
|
||||
deptID?: string;
|
||||
/** 部门名称 */
|
||||
deptName?: string;
|
||||
/** 部门描述 */
|
||||
deptDescription?: string;
|
||||
/** 父部门ID */
|
||||
parentID?: string;
|
||||
/** 父部门名称 */
|
||||
parentName?: string;
|
||||
/** 父部门描述 */
|
||||
parentDescription?: string;
|
||||
/** 角色ID */
|
||||
roleID?: string;
|
||||
/** 角色名称 */
|
||||
roleName?: string;
|
||||
/** 角色描述 */
|
||||
roleDescription?: string;
|
||||
/** 部门路径,用于快速权限继承判断 */
|
||||
deptPath?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -48,5 +73,19 @@ export interface SysDeptRole extends BaseDTO {
|
||||
deptID?: string;
|
||||
/** 角色ID */
|
||||
roleID?: string;
|
||||
|
||||
// 扁平化字段(用于前端展示,从关联查询中获取)
|
||||
/** 部门名称 */
|
||||
deptName?: string;
|
||||
/** 部门描述 */
|
||||
deptDescription?: string;
|
||||
/** 父部门ID */
|
||||
parentID?: string;
|
||||
/** 部门路径 */
|
||||
deptPath?: string;
|
||||
/** 角色名称 */
|
||||
roleName?: string;
|
||||
/** 角色描述 */
|
||||
roleDescription?: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -93,17 +93,4 @@ export interface SysUserDeptRole extends BaseDTO {
|
||||
deptID?: string;
|
||||
/** 角色ID */
|
||||
roleID?: string;
|
||||
}
|
||||
|
||||
export interface UserDeptRoleVO extends BaseDTO {
|
||||
/** 单个用户信息 */
|
||||
user?: SysUser;
|
||||
/** 用户列表 */
|
||||
users?: SysUser[];
|
||||
/** 部门列表 */
|
||||
depts?: SysDept[];
|
||||
/** 角色列表 */
|
||||
roles?: SysRole[];
|
||||
/** 用户部门角色关联列表 */
|
||||
userDeptRoles?: SysUserDeptRole[];
|
||||
}
|
||||
Reference in New Issue
Block a user