forked from OtterMind/Chat2DB
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.ts
More file actions
58 lines (55 loc) · 1.21 KB
/
Copy pathdashboard.ts
File metadata and controls
58 lines (55 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// export type IChartType = 'Pie' | 'Column' | 'Line';
export enum IChartType {
'Pie' = 'Pie',
'Column' = 'Column',
'Line' = 'Line',
}
// export interface IDashboardItem {
// name: string;
// data: Array<IChartItem[]>;
// }
export interface IDashboardItem {
id: number;
name?: string;
description?: string;
/** 保存图表布局 二维数据 number[][] */
schema?: string;
chartIds?: number[];
gmtModified?: number;
gmtCreate?: number;
}
// export interface IChartDataItem {
// /** sql内容 */
// sqlContext: string;
// /** sql返回数据 */
// sqlData: any;
// /** 图表类型 */
// chartType: IChartType;
// /** 图表参数 */
// chartParam: any;
// }
export interface IChartItem {
id?: number;
/** 图表名称 */
name?: string;
/** 图表描述 */
description?: string;
/** 图表参数 */
schema?: string;
/** 图表类型 */
chartType?: IChartType;
/** 数据源连接ID */
dataSourceId?: number;
/** 数据库类型 */
type?: string;
/** db名称 */
databaseName?: string;
/** schema名称 */
schemaName?: string;
/** ddl内容 */
ddl?: string;
/** 是否链接 */
connectable?: boolean;
/** sql返回数据 */
sqlData?: any;
}