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. 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. realName: 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. }
  49. export interface TableSetting {
  50. size: Nullable<SizeType>;
  51. showIndexColumn: Nullable<boolean>;
  52. columns: Recordable<Nullable<Array<ColumnOptionsType>>>;
  53. showRowSelection: Nullable<boolean>;
  54. }