Files
ruoyi-plus-vben5/apps/web-antd/src/api/system/user/model.d.ts

118 lines
2.1 KiB
TypeScript
Raw Normal View History

2024-09-13 15:27:29 +08:00
/**
* @description:
* @param updateSupport
* @param file excel文件
*/
export interface UserImportParam {
updateSupport: boolean;
file: Blob | File;
}
/**
* @description:
*/
export interface ResetPwdParam {
userId: string;
password: string;
}
export interface Dept {
deptId: number;
parentId: number;
parentName?: string;
ancestors: string;
deptName: string;
orderNum: number;
leader: string;
phone?: string;
email?: string;
status: string;
createTime?: string;
}
export interface Role {
roleId: string;
roleName: string;
roleKey: string;
roleSort: number;
dataScope: string;
menuCheckStrictly?: boolean;
deptCheckStrictly?: boolean;
status: string;
remark: string;
createTime?: string;
flag: boolean;
superAdmin: boolean;
}
export interface User {
userId: string;
tenantId: string;
deptId: number;
userName: string;
nickName: string;
userType: string;
email: string;
phonenumber: string;
sex: string;
avatar?: string;
status: string;
loginIp: string;
loginDate: string;
remark: string;
createTime: string;
dept: Dept;
roles: Role[];
roleIds?: string[];
postIds?: number[];
roleId: string;
deptName: string;
2024-09-13 15:27:29 +08:00
}
export interface Post {
postId: number;
postCode: string;
postName: string;
postSort: number;
status: string;
remark: string;
createTime: string;
}
/**
* @description
* @param user
* @param roleIds IDS id为空
* @param roles
* @param postIds IDS id为空
* @param posts
*/
export interface UserInfoResponse {
user?: User;
roleIds?: string[];
roles: Role[];
postIds?: number[];
2024-09-30 10:04:26 +08:00
posts?: Post[];
2024-09-13 15:27:29 +08:00
}
/**
* @description:
*/
export interface DeptTree {
id: number;
/**
* antd组件必须要这个属性
*/
key: string;
parentId: number;
label: string;
weight: number;
children?: DeptTree[];
}
export interface DeptTreeData {
id: number;
label: string;
children?: DeptTreeData[];
}