store.d.ts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import { ErrorTypeEnum } from '/@/enums/exceptionEnum';
  2. import { MenuModeEnum, MenuTypeEnum } from '/@/enums/menuEnum';
  3. import { PlainRoleInfo } 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. userId?: string | number;
  32. username?: string;
  33. realName?: string;
  34. avatar?: string;
  35. homePath?: string;
  36. tenantCode?: string;
  37. tenantName?: string;
  38. roles?: string[];
  39. plainRoles?: PlainRoleInfo[];
  40. phoneNumber?: string;
  41. email?: string;
  42. }
  43. export interface BeforeMiniState {
  44. menuCollapsed?: boolean;
  45. menuSplit?: boolean;
  46. menuMode?: MenuModeEnum;
  47. menuType?: MenuTypeEnum;
  48. }
  49. export interface UserUpdateInfo {
  50. activateToken?: string;
  51. avatar?: string;
  52. createTime?: string;
  53. creator?: string;
  54. email?: string;
  55. enabled?: true;
  56. hasPassword?: false;
  57. id?: string;
  58. level?: 2;
  59. password?: string;
  60. phoneNumber?: string;
  61. realName?: string;
  62. tenantId?: string;
  63. updateTime?: string;
  64. updater?: string;
  65. username?: string;
  66. }