33 lines
1015 B
JavaScript
33 lines
1015 B
JavaScript
// @ts-check
|
|
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
|
// This file is automatically generated. DO NOT EDIT
|
|
|
|
/**
|
|
* AuthService 认证服务
|
|
* @module
|
|
*/
|
|
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
// @ts-ignore: Unused imports
|
|
import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime";
|
|
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
// @ts-ignore: Unused imports
|
|
import * as $models from "./models.js";
|
|
|
|
/**
|
|
* Login 用户登录
|
|
* @param {string} username
|
|
* @param {string} password
|
|
* @returns {$CancellablePromise<$models.LoginResponse | null>}
|
|
*/
|
|
export function Login(username, password) {
|
|
return $Call.ByID(2350837569, username, password).then(/** @type {($result: any) => any} */(($result) => {
|
|
return $$createType1($result);
|
|
}));
|
|
}
|
|
|
|
// Private type creation functions
|
|
const $$createType0 = $models.LoginResponse.createFrom;
|
|
const $$createType1 = $Create.Nullable($$createType0);
|