feat quickly

This commit is contained in:
2026-01-24 11:14:31 +08:00
parent 83d722d2f1
commit 4aa48a822e
9 changed files with 80 additions and 134 deletions

View File

@@ -12,6 +12,8 @@ export function ExecuteGenPs1(arg1:string,arg2:string,arg3:string,arg4:string):P
export function GetSettings():Promise<backend.Settings>;
export function GetSwaggerFileInfo(arg1:string):Promise<backend.SwaggerFile>;
export function GetSwaggerFiles(arg1:string):Promise<Array<backend.SwaggerFile>>;
export function GetSwaggerServerURL():Promise<string>;

View File

@@ -22,6 +22,10 @@ export function GetSettings() {
return window['go']['backend']['App']['GetSettings']();
}
export function GetSwaggerFileInfo(arg1) {
return window['go']['backend']['App']['GetSwaggerFileInfo'](arg1);
}
export function GetSwaggerFiles(arg1) {
return window['go']['backend']['App']['GetSwaggerFiles'](arg1);
}

View File

@@ -38,7 +38,7 @@ export namespace backend {
mysqlModelPath: string;
defaultQueryPackagePath: string;
modelBasePath: string;
swaggerDir: string;
swaggerFilePath: string;
databases: DatabaseConfig[];
projects: ProjectConfig[];
@@ -55,7 +55,7 @@ export namespace backend {
this.mysqlModelPath = source["mysqlModelPath"];
this.defaultQueryPackagePath = source["defaultQueryPackagePath"];
this.modelBasePath = source["modelBasePath"];
this.swaggerDir = source["swaggerDir"];
this.swaggerFilePath = source["swaggerFilePath"];
this.databases = this.convertValues(source["databases"], DatabaseConfig);
this.projects = this.convertValues(source["projects"], ProjectConfig);
}