store.d.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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: string | number;
  32. userId: string | number;
  33. username: string;
  34. realname: string;
  35. avatar: string;
  36. desc?: string;
  37. homePath?: string;
  38. tenantid?: string | number;
  39. roles: RoleInfo[];
  40. orgCode?: string;
  41. workNo: string;
  42. }
  43. export interface LoginInfo {
  44. multi_depart?: string | number;
  45. userInfo?: object;
  46. departs?: [];
  47. tenantList?: [];
  48. isLogin?: boolean;
  49. }
  50. export interface BeforeMiniState {
  51. menuCollapsed?: boolean;
  52. menuSplit?: boolean;
  53. menuMode?: MenuModeEnum;
  54. menuType?: MenuTypeEnum;
  55. }