store.d.ts 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. userTenant?: UserTenant;
  42. }
  43. /**
  44. * 用户租户信息
  45. */
  46. export interface UserTenant {
  47. tenantId: number;
  48. tenantCode: string;
  49. tenantName: string;
  50. tenantShortName?: string;
  51. platformYn: boolean;
  52. }
  53. export interface BeforeMiniState {
  54. menuCollapsed?: boolean;
  55. menuSplit?: boolean;
  56. menuMode?: MenuModeEnum;
  57. menuType?: MenuTypeEnum;
  58. }
  59. export interface TableSetting {
  60. size: Nullable<SizeType>;
  61. showIndexColumn: Recordable<Nullable<boolean>>;
  62. columns: Recordable<Nullable<Array<ColumnOptionsType>>>;
  63. showRowSelection: Recordable<Nullable<boolean>>;
  64. }
  65. /**
  66. * 后台的系统参数
  67. */
  68. export interface SystemProperties {
  69. /**
  70. * 是否启用验证码
  71. */
  72. captchaEnabled?: boolean;
  73. /**
  74. * 验证码类型
  75. */
  76. captchaType?: string;
  77. /**
  78. * 验证码标记
  79. */
  80. captchaIdent?: string;
  81. }
  82. export interface RoleInfo {
  83. roleCode: string;
  84. roleName: string;
  85. superAdminYn: boolean;
  86. }