store.d.ts 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. export interface ApiAddress {
  12. key: string;
  13. val: string;
  14. }
  15. // Error-log information
  16. export interface ErrorLogInfo {
  17. // Type of error
  18. type: ErrorTypeEnum;
  19. // Error file
  20. file: string;
  21. // Error name
  22. name?: string;
  23. // Error message
  24. message: string;
  25. // Error stack
  26. stack?: string;
  27. // Error detail
  28. detail: string;
  29. // Error url
  30. url: string;
  31. // Error time
  32. time?: string;
  33. }
  34. export interface UserInfo {
  35. userId: string | number;
  36. username: string;
  37. nickname: string;
  38. avatar: string;
  39. desc?: string;
  40. homePath?: string;
  41. roles: RoleInfo[];
  42. }
  43. export interface BeforeMiniState {
  44. menuCollapsed?: boolean;
  45. menuSplit?: boolean;
  46. menuMode?: MenuModeEnum;
  47. menuType?: MenuTypeEnum;
  48. }