store.d.ts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. import { ErrorTypeEnum } from '/@/enums/exceptionEnum';
  2. import { MenuModeEnum, MenuTypeEnum } from '/@/enums/menuEnum';
  3. import { RoleInfo } from '/@/api/sys/model/userModel';
  4. // Lock screen information
  5. export interface LockInfo {
  6. // Password required
  7. pwd?: string | undefined;
  8. // Is it locked?
  9. isLock?: boolean;
  10. }
  11. // Error-log information
  12. export interface ErrorLogInfo {
  13. // Type of error
  14. type: ErrorTypeEnum;
  15. // Error file
  16. file: string;
  17. // Error name
  18. name?: string;
  19. // Error message
  20. message: string;
  21. // Error stack
  22. stack?: string;
  23. // Error detail
  24. detail: string;
  25. // Error url
  26. url: string;
  27. // Error time
  28. time?: string;
  29. }
  30. export interface UserInfo {
  31. // 用户id
  32. id: string;
  33. // 真实名字
  34. name: string;
  35. // 编码
  36. code: string;
  37. // 手机
  38. mobile: string;
  39. //角色
  40. roles: RoleInfo[];
  41. // 用户名
  42. userName: string;
  43. // 头像
  44. avatar: string;
  45. //部门id
  46. departmentId: string;
  47. //部门名称
  48. departmentName: string;
  49. //备注
  50. remark: string;
  51. //邮箱
  52. email: string;
  53. //地址
  54. address: string;
  55. desc?: string;
  56. homePath?: string;
  57. //性别
  58. gender: string;
  59. nickName: string;
  60. //密码
  61. password: string;
  62. //岗位id
  63. postId: string;
  64. //岗位名称
  65. postName: string;
  66. //所有部门
  67. departments: DepartmentInfo[];
  68. //所有部门
  69. posts: PostInfo[];
  70. desktopSchema: DesktopData;
  71. }
  72. export interface BeforeMiniState {
  73. menuCollapsed?: boolean;
  74. menuSplit?: boolean;
  75. menuMode?: MenuModeEnum;
  76. menuType?: MenuTypeEnum;
  77. }