feat quickly
This commit is contained in:
45
Tools/quickly/frontend/wailsjs/go/backend/App.d.ts
vendored
Normal file
45
Tools/quickly/frontend/wailsjs/go/backend/App.d.ts
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
import {backend} from '../models';
|
||||
|
||||
export function AddDatabaseConfig(arg1:string,arg2:string,arg3:string):Promise<void>;
|
||||
|
||||
export function AddProjectConfig(arg1:string,arg2:string):Promise<void>;
|
||||
|
||||
export function CheckGenPs1Exists(arg1:string):Promise<boolean>;
|
||||
|
||||
export function ExecuteGenPs1(arg1:string,arg2:string,arg3:string,arg4:string):Promise<string>;
|
||||
|
||||
export function GetSettings():Promise<backend.Settings>;
|
||||
|
||||
export function GetSwaggerFiles(arg1:string):Promise<Array<backend.SwaggerFile>>;
|
||||
|
||||
export function GetSwaggerServerURL():Promise<string>;
|
||||
|
||||
export function Greet(arg1:string):Promise<string>;
|
||||
|
||||
export function IsSwaggerServerRunning():Promise<boolean>;
|
||||
|
||||
export function ReadGoModModule(arg1:string):Promise<string>;
|
||||
|
||||
export function ReadSwaggerFile(arg1:string):Promise<string>;
|
||||
|
||||
export function RemoveDatabaseConfig(arg1:string):Promise<void>;
|
||||
|
||||
export function RemoveProjectConfig(arg1:string):Promise<void>;
|
||||
|
||||
export function SaveSettings(arg1:backend.Settings):Promise<void>;
|
||||
|
||||
export function SelectDirectory(arg1:string,arg2:string):Promise<string>;
|
||||
|
||||
export function SelectFile(arg1:string,arg2:string,arg3:string):Promise<string>;
|
||||
|
||||
export function StartSwaggerServer(arg1:string):Promise<string>;
|
||||
|
||||
export function StopSwaggerServer():Promise<void>;
|
||||
|
||||
export function UpdateDatabaseConfig(arg1:string,arg2:string,arg3:string,arg4:string):Promise<void>;
|
||||
|
||||
export function UpdateProjectConfig(arg1:string,arg2:string,arg3:string):Promise<void>;
|
||||
|
||||
export function UpdateServiceCommon(arg1:string,arg2:Array<string>):Promise<string>;
|
||||
87
Tools/quickly/frontend/wailsjs/go/backend/App.js
Normal file
87
Tools/quickly/frontend/wailsjs/go/backend/App.js
Normal file
@@ -0,0 +1,87 @@
|
||||
// @ts-check
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
export function AddDatabaseConfig(arg1, arg2, arg3) {
|
||||
return window['go']['backend']['App']['AddDatabaseConfig'](arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
export function AddProjectConfig(arg1, arg2) {
|
||||
return window['go']['backend']['App']['AddProjectConfig'](arg1, arg2);
|
||||
}
|
||||
|
||||
export function CheckGenPs1Exists(arg1) {
|
||||
return window['go']['backend']['App']['CheckGenPs1Exists'](arg1);
|
||||
}
|
||||
|
||||
export function ExecuteGenPs1(arg1, arg2, arg3, arg4) {
|
||||
return window['go']['backend']['App']['ExecuteGenPs1'](arg1, arg2, arg3, arg4);
|
||||
}
|
||||
|
||||
export function GetSettings() {
|
||||
return window['go']['backend']['App']['GetSettings']();
|
||||
}
|
||||
|
||||
export function GetSwaggerFiles(arg1) {
|
||||
return window['go']['backend']['App']['GetSwaggerFiles'](arg1);
|
||||
}
|
||||
|
||||
export function GetSwaggerServerURL() {
|
||||
return window['go']['backend']['App']['GetSwaggerServerURL']();
|
||||
}
|
||||
|
||||
export function Greet(arg1) {
|
||||
return window['go']['backend']['App']['Greet'](arg1);
|
||||
}
|
||||
|
||||
export function IsSwaggerServerRunning() {
|
||||
return window['go']['backend']['App']['IsSwaggerServerRunning']();
|
||||
}
|
||||
|
||||
export function ReadGoModModule(arg1) {
|
||||
return window['go']['backend']['App']['ReadGoModModule'](arg1);
|
||||
}
|
||||
|
||||
export function ReadSwaggerFile(arg1) {
|
||||
return window['go']['backend']['App']['ReadSwaggerFile'](arg1);
|
||||
}
|
||||
|
||||
export function RemoveDatabaseConfig(arg1) {
|
||||
return window['go']['backend']['App']['RemoveDatabaseConfig'](arg1);
|
||||
}
|
||||
|
||||
export function RemoveProjectConfig(arg1) {
|
||||
return window['go']['backend']['App']['RemoveProjectConfig'](arg1);
|
||||
}
|
||||
|
||||
export function SaveSettings(arg1) {
|
||||
return window['go']['backend']['App']['SaveSettings'](arg1);
|
||||
}
|
||||
|
||||
export function SelectDirectory(arg1, arg2) {
|
||||
return window['go']['backend']['App']['SelectDirectory'](arg1, arg2);
|
||||
}
|
||||
|
||||
export function SelectFile(arg1, arg2, arg3) {
|
||||
return window['go']['backend']['App']['SelectFile'](arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
export function StartSwaggerServer(arg1) {
|
||||
return window['go']['backend']['App']['StartSwaggerServer'](arg1);
|
||||
}
|
||||
|
||||
export function StopSwaggerServer() {
|
||||
return window['go']['backend']['App']['StopSwaggerServer']();
|
||||
}
|
||||
|
||||
export function UpdateDatabaseConfig(arg1, arg2, arg3, arg4) {
|
||||
return window['go']['backend']['App']['UpdateDatabaseConfig'](arg1, arg2, arg3, arg4);
|
||||
}
|
||||
|
||||
export function UpdateProjectConfig(arg1, arg2, arg3) {
|
||||
return window['go']['backend']['App']['UpdateProjectConfig'](arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
export function UpdateServiceCommon(arg1, arg2) {
|
||||
return window['go']['backend']['App']['UpdateServiceCommon'](arg1, arg2);
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
export function Greet(arg1:string):Promise<string>;
|
||||
@@ -1,7 +0,0 @@
|
||||
// @ts-check
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
export function Greet(arg1) {
|
||||
return window['go']['main']['App']['Greet'](arg1);
|
||||
}
|
||||
101
Tools/quickly/frontend/wailsjs/go/models.ts
Normal file
101
Tools/quickly/frontend/wailsjs/go/models.ts
Normal file
@@ -0,0 +1,101 @@
|
||||
export namespace backend {
|
||||
|
||||
export class DatabaseConfig {
|
||||
name: string;
|
||||
targetPath: string;
|
||||
modelPackagePath: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new DatabaseConfig(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.name = source["name"];
|
||||
this.targetPath = source["targetPath"];
|
||||
this.modelPackagePath = source["modelPackagePath"];
|
||||
}
|
||||
}
|
||||
export class ProjectConfig {
|
||||
name: string;
|
||||
path: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new ProjectConfig(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.name = source["name"];
|
||||
this.path = source["path"];
|
||||
}
|
||||
}
|
||||
export class Settings {
|
||||
theme: string;
|
||||
language: string;
|
||||
notifications: boolean;
|
||||
autoStart: boolean;
|
||||
mysqlModelPath: string;
|
||||
defaultQueryPackagePath: string;
|
||||
modelBasePath: string;
|
||||
swaggerDir: string;
|
||||
databases: DatabaseConfig[];
|
||||
projects: ProjectConfig[];
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new Settings(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.theme = source["theme"];
|
||||
this.language = source["language"];
|
||||
this.notifications = source["notifications"];
|
||||
this.autoStart = source["autoStart"];
|
||||
this.mysqlModelPath = source["mysqlModelPath"];
|
||||
this.defaultQueryPackagePath = source["defaultQueryPackagePath"];
|
||||
this.modelBasePath = source["modelBasePath"];
|
||||
this.swaggerDir = source["swaggerDir"];
|
||||
this.databases = this.convertValues(source["databases"], DatabaseConfig);
|
||||
this.projects = this.convertValues(source["projects"], ProjectConfig);
|
||||
}
|
||||
|
||||
convertValues(a: any, classs: any, asMap: boolean = false): any {
|
||||
if (!a) {
|
||||
return a;
|
||||
}
|
||||
if (a.slice && a.map) {
|
||||
return (a as any[]).map(elem => this.convertValues(elem, classs));
|
||||
} else if ("object" === typeof a) {
|
||||
if (asMap) {
|
||||
for (const key of Object.keys(a)) {
|
||||
a[key] = new classs(a[key]);
|
||||
}
|
||||
return a;
|
||||
}
|
||||
return new classs(a);
|
||||
}
|
||||
return a;
|
||||
}
|
||||
}
|
||||
export class SwaggerFile {
|
||||
name: string;
|
||||
path: string;
|
||||
size: number;
|
||||
modifiedTime: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new SwaggerFile(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.name = source["name"];
|
||||
this.path = source["path"];
|
||||
this.size = source["size"];
|
||||
this.modifiedTime = source["modifiedTime"];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user