compnay select
This commit is contained in:
13
app/frontend/bindings/lib/company/Company.js
Normal file
13
app/frontend/bindings/lib/company/Company.js
Normal file
@@ -0,0 +1,13 @@
|
||||
// @ts-check
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
import {Call} from '@wailsio/runtime';
|
||||
|
||||
/**
|
||||
* @function Create
|
||||
* @returns {Promise<void>}
|
||||
**/
|
||||
export async function Create() {
|
||||
return Call.ByName("company.Company.Create", ...Array.prototype.slice.call(arguments, 0));
|
||||
}
|
||||
25
app/frontend/bindings/lib/dbsrv/Srv.js
Normal file
25
app/frontend/bindings/lib/dbsrv/Srv.js
Normal file
@@ -0,0 +1,25 @@
|
||||
// @ts-check
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
import {Call} from '@wailsio/runtime';
|
||||
|
||||
/**
|
||||
* @function Companies
|
||||
* @returns {Promise<Company[], void>}
|
||||
**/
|
||||
export async function Companies() {
|
||||
return Call.ByName("dbsrv.Srv.Companies", ...Array.prototype.slice.call(arguments, 0));
|
||||
}
|
||||
|
||||
/**
|
||||
* @function CreateCompany
|
||||
* @param name {string}
|
||||
* @param memberNumber {string}
|
||||
* @param username {string}
|
||||
* @param password {string}
|
||||
* @returns {Promise<void>}
|
||||
**/
|
||||
export async function CreateCompany(name, memberNumber, username, password) {
|
||||
return Call.ByName("dbsrv.Srv.CreateCompany", ...Array.prototype.slice.call(arguments, 0));
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
// @ts-check
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
import {Call} from '@wailsio/runtime';
|
||||
|
||||
/**
|
||||
* @function ClaimFile
|
||||
* @returns {Promise<string>}
|
||||
**/
|
||||
export async function ClaimFile() {
|
||||
return Call.ByName("main.BotService.ClaimFile", ...Array.prototype.slice.call(arguments, 0));
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
// @ts-check
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
import {Call} from '@wailsio/runtime';
|
||||
/**
|
||||
* @typedef {import('./models').LoginUser} LoginUser
|
||||
*/
|
||||
|
||||
/**
|
||||
* @function Login
|
||||
* @param userName {string}
|
||||
* @param password {string}
|
||||
* @returns {Promise<LoginUser>}
|
||||
**/
|
||||
export async function Login(userName, password) {
|
||||
return Call.ByName("main.LoginService.Login", ...Array.prototype.slice.call(arguments, 0));
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
// @ts-check
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
export const LoginUser = class {
|
||||
/**
|
||||
* Creates a new LoginUser instance.
|
||||
* @constructor
|
||||
* @param {Object} source - The source object to create the LoginUser.
|
||||
* @param {string} source.UserName
|
||||
* @param {string} source.password
|
||||
* @param {string} source.Token
|
||||
* @param {boolean} source.LoggedIn
|
||||
*/
|
||||
constructor(source = {}) {
|
||||
const { userName = "", password = "", token = "", loggedIn = false } = source;
|
||||
this.userName = userName;
|
||||
this.password = password;
|
||||
this.token = token;
|
||||
this.loggedIn = loggedIn;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new LoginUser instance from a string or object.
|
||||
* @param {string|object} source - The source data to create a LoginUser instance from.
|
||||
* @returns {LoginUser} A new LoginUser instance.
|
||||
*/
|
||||
static createFrom(source) {
|
||||
let parsedSource = typeof source === 'string' ? JSON.parse(source) : source;
|
||||
return new LoginUser(parsedSource);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
// @ts-check
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
export const LoginUser = class {
|
||||
/**
|
||||
* Creates a new LoginUser instance.
|
||||
* @constructor
|
||||
* @param {Object} source - The source object to create the LoginUser.
|
||||
* @param {string} source.UserName
|
||||
* @param {string} source.password
|
||||
* @param {string} source.Token
|
||||
* @param {boolean} source.LoggedIn
|
||||
*/
|
||||
constructor(source = {}) {
|
||||
const { userName = "", password = "", token = "", loggedIn = false } = source;
|
||||
this.userName = userName;
|
||||
this.password = password;
|
||||
this.token = token;
|
||||
this.loggedIn = loggedIn;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new LoginUser instance from a string or object.
|
||||
* @param {string|object} source - The source data to create a LoginUser instance from.
|
||||
* @returns {LoginUser} A new LoginUser instance.
|
||||
*/
|
||||
static createFrom(source) {
|
||||
let parsedSource = typeof source === 'string' ? JSON.parse(source) : source;
|
||||
return new LoginUser(parsedSource);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user