Blame view

Yi.Vben5.Vue3/apps/web-antd/src/api/system/user/model.d.ts 1.94 KB
515fceeb   “wangming”   框架初始化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
  import type { Dept } from '../dept/model';
  
  /**
   * @description: 用户导入
   * @param updateSupport 是否覆盖数据
   * @param file excel文件
   */
  export interface UserImportParam {
    updateSupport: boolean;
    file: Blob | File;
  }
  
  /**
   * @description: 重置密码
   */
  export interface ResetPwdParam {
    id: string;
    password: string;
  }
  
  export interface Role {
    roleId: string;
    roleName: string;
    roleKey: string;
    roleSort: number;
    dataScope: string;
    menuCheckStrictly?: boolean;
    deptCheckStrictly?: boolean;
    status: string;
    remark: string;
    creationTime?: string;
    flag: boolean;
    superAdmin: boolean;
  }
  
  export interface User {
    id: string;
    isDeleted: boolean;
    name?: string | null;
    age?: number | null;
    userName: string;
    icon?: string | null;
    nick?: string | null;
    email?: string | null;
    ip?: string | null;
    address?: string | null;
    phone?: number | null;
    introduction?: string | null;
    remark?: string | null;
    sex: string; // SexEnum
    deptId?: string | null;
    creationTime: string;
    creatorId?: string | null;
    lastModifierId?: string | null;
    lastModificationTime?: string | null;
    orderNum: number;
    state: boolean;
    deptName?: string | null;
    posts?: Post[];
    roles?: Role[];
    dept?: Dept | null;
  }
  
  export interface Post {
    postId: number;
    postCode: string;
    postName: string;
    postSort: number;
    status: string;
    remark: string;
    creationTime: 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[];
    posts?: Post[];
  }
  
  /**
   * @description: 部门树
   */
  export interface DeptTreeData {
    id: string;
    parentId: string;
    orderNum: number;
    deptName: string;
    state: boolean;
    children?: DeptTreeData[] | null;
  }