初始化项目;更新至 v0.1.0_20251209 版本
This commit is contained in:
22
types.ts
Normal file
22
types.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
export type DatabaseType = 'MySQL' | 'PostgreSQL' | 'Oracle' | 'SQL Server' | 'SQLite' | 'Hive' | 'Dm';
|
||||
|
||||
export interface SqlGenerationRequest {
|
||||
tableStructure: string;
|
||||
dictionaryData: string;
|
||||
requirement: string;
|
||||
databaseType: DatabaseType;
|
||||
}
|
||||
|
||||
export interface HistoryItem {
|
||||
id: string;
|
||||
timestamp: number;
|
||||
sql: string;
|
||||
}
|
||||
|
||||
export enum LoadingState {
|
||||
IDLE = 'IDLE',
|
||||
LOADING = 'LOADING',
|
||||
SUCCESS = 'SUCCESS',
|
||||
ERROR = 'ERROR',
|
||||
}
|
||||
Reference in New Issue
Block a user