store.d.ts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. import { ErrorTypeEnum } from '@/enums/exceptionEnum';
  2. import { MenuModeEnum, MenuTypeEnum } from '@/enums/menuEnum';
  3. // Lock screen information
  4. export interface LockInfo {
  5. // Is it locked?
  6. isLock?: boolean;
  7. }
  8. // Error-log information
  9. export interface ErrorLogInfo {
  10. // Type of error
  11. type: ErrorTypeEnum;
  12. // Error file
  13. file: string;
  14. // Error name
  15. name?: string;
  16. // Error message
  17. message: string;
  18. // Error stack
  19. stack?: string;
  20. // Error detail
  21. detail: string;
  22. // Error url
  23. url: string;
  24. // Error time
  25. time?: string;
  26. }
  27. export interface PermissionChildItem {
  28. id: string;
  29. enCode: string;
  30. fullName: string;
  31. }
  32. export interface PermissionInfo {
  33. modelId: string;
  34. moduleName: string;
  35. button: PermissionChildItem[];
  36. column: PermissionChildItem[];
  37. form: PermissionChildItem[];
  38. resource: PermissionChildItem[];
  39. }
  40. export interface SysConfigInfo {
  41. appIcon: Nullable<string>;
  42. companyName: Nullable<string>;
  43. copyright: Nullable<string>;
  44. loginIcon: Nullable<string>;
  45. logoIcon: Nullable<string>;
  46. navigationIcon: Nullable<string>;
  47. workLogoIcon: Nullable<string>;
  48. newUserDefaultPassword: Nullable<string>;
  49. sysName: Nullable<string>;
  50. sysVersion: Nullable<string>;
  51. title: Nullable<string>;
  52. jnpfDomain: Nullable<string>;
  53. defaultView: Nullable<string>;
  54. showLunarCalendar: Nullable<boolean>;
  55. firstDay: number;
  56. duration: number;
  57. flowSign: number;
  58. flowTodo: number;
  59. delegateScope: number;
  60. delegateAck: number;
  61. proxyScope: number;
  62. proxyAck: number;
  63. }
  64. export interface SystemInfo {
  65. id: string;
  66. name: Nullable<string>;
  67. icon: Nullable<string>;
  68. currentSystem: boolean;
  69. }
  70. export interface UserInfo {
  71. birthday: Nullable<number>;
  72. departmentId: Nullable<string>;
  73. departmentName: Nullable<string>;
  74. email: Nullable<string>;
  75. headIcon: Nullable<string>;
  76. isAdministrator: boolean;
  77. manager: Nullable<string>;
  78. mobilePhone: Nullable<string>;
  79. organizeId: Nullable<string>;
  80. organizeIdList: Nullable<string[]>;
  81. organizeName: Nullable<string>;
  82. portalId: Nullable<string>;
  83. positionId: Nullable<string>;
  84. positionName: string;
  85. positionIds: any[];
  86. prevLogin: number;
  87. prevLoginIPAddress: Nullable<string>;
  88. prevLoginIPAddressName: Nullable<string>;
  89. prevLoginTime: Nullable<number>;
  90. roleName: Nullable<string>;
  91. roleIds: string[];
  92. groupIds: string[];
  93. systemId: string;
  94. systemIds: SystemInfo[];
  95. userAccount: string;
  96. userId: string;
  97. userName: Nullable<string>;
  98. signImg: string;
  99. signId: string;
  100. standingList: any[];
  101. }
  102. export interface BeforeMiniState {
  103. menuCollapsed?: boolean;
  104. menuSplit?: boolean;
  105. menuMode?: MenuModeEnum;
  106. menuType?: MenuTypeEnum;
  107. }