Exercise 1
This commit is contained in:
13
ex1/frontend/wailsjs/go/main/App.d.ts
vendored
Executable file
13
ex1/frontend/wailsjs/go/main/App.d.ts
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
import {proto} from '../models';
|
||||
import {main} from '../models';
|
||||
import {frontend} from '../models';
|
||||
|
||||
export function AggregateByColumn(arg1:proto.EmployeeField,arg2:proto.EmployeeField,arg3:main.FunctionAgg):Promise<{[key: string]: number}>;
|
||||
|
||||
export function GetEmployees(arg1:string,arg2:number,arg3:number,arg4:any,arg5:any):Promise<Array<proto.Employee>>;
|
||||
|
||||
export function GetProtoPath():Promise<string>;
|
||||
|
||||
export function OpenPath(arg1:Array<frontend.FileFilter>):Promise<string>;
|
||||
19
ex1/frontend/wailsjs/go/main/App.js
Executable file
19
ex1/frontend/wailsjs/go/main/App.js
Executable file
@@ -0,0 +1,19 @@
|
||||
// @ts-check
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
export function AggregateByColumn(arg1, arg2, arg3) {
|
||||
return window['go']['main']['App']['AggregateByColumn'](arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
export function GetEmployees(arg1, arg2, arg3, arg4, arg5) {
|
||||
return window['go']['main']['App']['GetEmployees'](arg1, arg2, arg3, arg4, arg5);
|
||||
}
|
||||
|
||||
export function GetProtoPath() {
|
||||
return window['go']['main']['App']['GetProtoPath']();
|
||||
}
|
||||
|
||||
export function OpenPath(arg1) {
|
||||
return window['go']['main']['App']['OpenPath'](arg1);
|
||||
}
|
||||
87
ex1/frontend/wailsjs/go/models.ts
Executable file
87
ex1/frontend/wailsjs/go/models.ts
Executable file
@@ -0,0 +1,87 @@
|
||||
export namespace proto {
|
||||
|
||||
export class Employee {
|
||||
emp_id?: number;
|
||||
name_prefix?: string;
|
||||
first_name?: string;
|
||||
middle_initial?: string;
|
||||
last_name?: string;
|
||||
gender?: number;
|
||||
email?: string;
|
||||
fathers_name?: string;
|
||||
mothers_name?: string;
|
||||
mothers_maiden_name?: string;
|
||||
birthdate?: string;
|
||||
birth_time?: string;
|
||||
weight_kg?: number;
|
||||
joining_date?: string;
|
||||
joining_quarter?: number;
|
||||
joining_half?: number;
|
||||
joining_year?: number;
|
||||
joining_month?: number;
|
||||
joining_month_name?: number;
|
||||
joining_month_name_short?: number;
|
||||
joining_month_day?: number;
|
||||
joining_week_day?: number;
|
||||
joining_week_day_short?: number;
|
||||
years_of_service?: number;
|
||||
salary?: number;
|
||||
latest_hike_percentage?: string;
|
||||
ssn?: string;
|
||||
phone_number?: string;
|
||||
place_name?: string;
|
||||
county?: string;
|
||||
city?: string;
|
||||
state?: string;
|
||||
zip?: number;
|
||||
region?: string;
|
||||
username?: string;
|
||||
password?: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new Employee(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.emp_id = source["emp_id"];
|
||||
this.name_prefix = source["name_prefix"];
|
||||
this.first_name = source["first_name"];
|
||||
this.middle_initial = source["middle_initial"];
|
||||
this.last_name = source["last_name"];
|
||||
this.gender = source["gender"];
|
||||
this.email = source["email"];
|
||||
this.fathers_name = source["fathers_name"];
|
||||
this.mothers_name = source["mothers_name"];
|
||||
this.mothers_maiden_name = source["mothers_maiden_name"];
|
||||
this.birthdate = source["birthdate"];
|
||||
this.birth_time = source["birth_time"];
|
||||
this.weight_kg = source["weight_kg"];
|
||||
this.joining_date = source["joining_date"];
|
||||
this.joining_quarter = source["joining_quarter"];
|
||||
this.joining_half = source["joining_half"];
|
||||
this.joining_year = source["joining_year"];
|
||||
this.joining_month = source["joining_month"];
|
||||
this.joining_month_name = source["joining_month_name"];
|
||||
this.joining_month_name_short = source["joining_month_name_short"];
|
||||
this.joining_month_day = source["joining_month_day"];
|
||||
this.joining_week_day = source["joining_week_day"];
|
||||
this.joining_week_day_short = source["joining_week_day_short"];
|
||||
this.years_of_service = source["years_of_service"];
|
||||
this.salary = source["salary"];
|
||||
this.latest_hike_percentage = source["latest_hike_percentage"];
|
||||
this.ssn = source["ssn"];
|
||||
this.phone_number = source["phone_number"];
|
||||
this.place_name = source["place_name"];
|
||||
this.county = source["county"];
|
||||
this.city = source["city"];
|
||||
this.state = source["state"];
|
||||
this.zip = source["zip"];
|
||||
this.region = source["region"];
|
||||
this.username = source["username"];
|
||||
this.password = source["password"];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user