store.d.ts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. export interface ApiAddress {
  11. key: string;
  12. val: string;
  13. }
  14. // Error-log information
  15. export interface ErrorLogInfo {
  16. // Type of error
  17. type: ErrorTypeEnum;
  18. // Error file
  19. file: string;
  20. // Error name
  21. name?: string;
  22. // Error message
  23. message: string;
  24. // Error stack
  25. stack?: string;
  26. // Error detail
  27. detail: string;
  28. // Error url
  29. url: string;
  30. // Error time
  31. time?: string;
  32. }
  33. export interface UserInfo {
  34. userId: string | number;
  35. username: string;
  36. realName: string;
  37. avatar: string;
  38. desc?: string;
  39. homePath?: string;
  40. }
  41. export interface BeforeMiniState {
  42. menuCollapsed?: boolean;
  43. menuSplit?: boolean;
  44. menuMode?: MenuModeEnum;
  45. menuType?: MenuTypeEnum;
  46. }
  47. export interface TableSetting {
  48. size: Nullable<SizeType>;
  49. showIndexColumn: Recordable<Nullable<boolean>>;
  50. columns: Recordable<Nullable<Array<ColumnOptionsType>>>;
  51. showRowSelection: Recordable<Nullable<boolean>>;
  52. }
  53. /**
  54. * 后台的系统参数
  55. */
  56. export interface SystemProperties {
  57. /**
  58. * 是否启用验证码
  59. */
  60. captchaEnabled?: boolean;
  61. /**
  62. * 验证码类型
  63. */
  64. captchaType?: string;
  65. /**
  66. * 验证码标记
  67. */
  68. captchaIdent?: string;
  69. }