huangyinfeng
2024-09-13 12f7304fe9e2bb56ec328e4429a654a0653928a9
提交 | 用户 | age
4d2fb0 1 import { ErrorTypeEnum } from '@/enums/exceptionEnum';
X 2 import { MenuModeEnum, MenuTypeEnum } from '@/enums/menuEnum';
3 import { RoleInfo } from '@/api/sys/model/userModel';
215d8b 4
V 5 // Lock screen information
6 export interface LockInfo {
7   // Password required
8   pwd?: string | undefined;
9   // Is it locked?
10   isLock?: boolean;
11 }
12
00bf5d 13 export interface ApiAddress {
L 14   key: string;
15   val: string;
16 }
17
215d8b 18 // Error-log information
V 19 export interface ErrorLogInfo {
20   // Type of error
21   type: ErrorTypeEnum;
22   // Error file
23   file: string;
24   // Error name
25   name?: string;
26   // Error message
27   message: string;
28   // Error stack
29   stack?: string;
30   // Error detail
31   detail: string;
32   // Error url
33   url: string;
34   // Error time
35   time?: string;
36 }
37
38 export interface UserInfo {
39   userId: string | number;
40   username: string;
41   realName: string;
7519a0 42   avatar: string;
215d8b 43   desc?: string;
0a3683 44   homePath?: string;
45   roles: RoleInfo[];
215d8b 46 }
V 47
48 export interface BeforeMiniState {
49   menuCollapsed?: boolean;
50   menuSplit?: boolean;
51   menuMode?: MenuModeEnum;
52   menuType?: MenuTypeEnum;
53 }
f4df2d 54
X 55 export interface TableSetting {
56   size: Nullable<SizeType>;
d88f45 57   showIndexColumn: Recordable<Nullable<boolean>>;
f4df2d 58   columns: Recordable<Nullable<Array<ColumnOptionsType>>>;
d88f45 59   showRowSelection: Recordable<Nullable<boolean>>;
f4df2d 60 }