初始化项目;更新至 v0.1.0_20251209 版本

This commit is contained in:
2025-12-09 22:18:14 +08:00
parent 051d9603b1
commit 2c7cbac954
15 changed files with 584 additions and 2 deletions

22
types.ts Normal file
View 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',
}