mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 17:26:55 +08:00
feat(dashboard): The dashboard supports displaying real-time data (#930)
This commit is contained in:
@@ -39,6 +39,7 @@ export class ChatRecord {
|
||||
question?: string
|
||||
sql_answer?: string
|
||||
sql?: string
|
||||
datasource?: number
|
||||
data?: string | any
|
||||
chart_answer?: string
|
||||
chart?: string
|
||||
@@ -67,6 +68,7 @@ export class ChatRecord {
|
||||
question: string,
|
||||
sql_answer: string | undefined,
|
||||
sql: string | undefined,
|
||||
datasource: number | undefined,
|
||||
data: string | any | undefined,
|
||||
chart_answer: string | undefined,
|
||||
chart: string | undefined,
|
||||
@@ -94,6 +96,7 @@ export class ChatRecord {
|
||||
question?: string,
|
||||
sql_answer?: string,
|
||||
sql?: string,
|
||||
datasource?: number | undefined,
|
||||
data?: string | any,
|
||||
chart_answer?: string,
|
||||
chart?: string,
|
||||
@@ -120,6 +123,7 @@ export class ChatRecord {
|
||||
this.question = question
|
||||
this.sql_answer = sql_answer
|
||||
this.sql = sql
|
||||
this.datasource = datasource
|
||||
this.data = data
|
||||
this.chart_answer = chart_answer
|
||||
this.chart = chart
|
||||
@@ -263,6 +267,7 @@ const toChatRecord = (data?: any): ChatRecord | undefined => {
|
||||
data.question,
|
||||
data.sql_answer,
|
||||
data.sql,
|
||||
data.datasource,
|
||||
data.data,
|
||||
data.chart_answer,
|
||||
data.chart,
|
||||
|
||||
Reference in New Issue
Block a user