store.d.ts 882 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { ErrorTypeEnum } from '/@/enums/exceptionEnum';
  2. import { MenuModeEnum, MenuTypeEnum } from '/@/enums/menuEnum';
  3. // Lock screen information
  4. export interface LockInfo {
  5. // Password required
  6. pwd?: string | undefined;
  7. // Is it locked?
  8. isLock?: boolean;
  9. }
  10. // Error-log information
  11. export interface ErrorLogInfo {
  12. // Type of error
  13. type: ErrorTypeEnum;
  14. // Error file
  15. file: string;
  16. // Error name
  17. name?: string;
  18. // Error message
  19. message: string;
  20. // Error stack
  21. stack?: string;
  22. // Error detail
  23. detail: string;
  24. // Error url
  25. url: string;
  26. // Error time
  27. time?: string;
  28. }
  29. export interface UserInfo {
  30. userId: string | number;
  31. username: string;
  32. realName: string;
  33. avatar: string;
  34. desc?: string;
  35. }
  36. export interface BeforeMiniState {
  37. menuCollapsed?: boolean;
  38. menuSplit?: boolean;
  39. menuMode?: MenuModeEnum;
  40. menuType?: MenuTypeEnum;
  41. }