|
@@ -11,12 +11,12 @@
|
|
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
|
* Do not edit the class manually.
|
|
* Do not edit the class manually.
|
|
|
*/
|
|
*/
|
|
|
-
|
|
|
|
|
import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
import { Configuration } from '../configuration';
|
|
import { Configuration } from '../configuration';
|
|
|
// Some imports not used depending on template conditions
|
|
// Some imports not used depending on template conditions
|
|
|
// @ts-ignore
|
|
// @ts-ignore
|
|
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
|
|
|
+import { AdminResultBoolean } from '../models';
|
|
|
import { AdminResultLoginOutput } from '../models';
|
|
import { AdminResultLoginOutput } from '../models';
|
|
|
import { AdminResultLoginUserOutput } from '../models';
|
|
import { AdminResultLoginUserOutput } from '../models';
|
|
|
import { AdminResultObject } from '../models';
|
|
import { AdminResultObject } from '../models';
|
|
@@ -48,13 +48,6 @@ export const SysAuthApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
const localVarQueryParameter = {} as any;
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
// authentication Bearer required
|
|
|
- // http bearer authentication required
|
|
|
|
|
- if (configuration && configuration.accessToken) {
|
|
|
|
|
- const accessToken = typeof configuration.accessToken === 'function'
|
|
|
|
|
- ? await configuration.accessToken()
|
|
|
|
|
- : await configuration.accessToken;
|
|
|
|
|
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
for (const key in localVarQueryParameter) {
|
|
for (const key in localVarQueryParameter) {
|
|
@@ -91,13 +84,6 @@ export const SysAuthApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
const localVarQueryParameter = {} as any;
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
// authentication Bearer required
|
|
|
- // http bearer authentication required
|
|
|
|
|
- if (configuration && configuration.accessToken) {
|
|
|
|
|
- const accessToken = typeof configuration.accessToken === 'function'
|
|
|
|
|
- ? await configuration.accessToken()
|
|
|
|
|
- : await configuration.accessToken;
|
|
|
|
|
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
for (const key in localVarQueryParameter) {
|
|
for (const key in localVarQueryParameter) {
|
|
@@ -139,13 +125,6 @@ export const SysAuthApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
const localVarQueryParameter = {} as any;
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
// authentication Bearer required
|
|
|
- // http bearer authentication required
|
|
|
|
|
- if (configuration && configuration.accessToken) {
|
|
|
|
|
- const accessToken = typeof configuration.accessToken === 'function'
|
|
|
|
|
- ? await configuration.accessToken()
|
|
|
|
|
- : await configuration.accessToken;
|
|
|
|
|
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
|
|
localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
|
|
|
|
|
|
|
@@ -191,13 +170,6 @@ export const SysAuthApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
const localVarQueryParameter = {} as any;
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
// authentication Bearer required
|
|
|
- // http bearer authentication required
|
|
|
|
|
- if (configuration && configuration.accessToken) {
|
|
|
|
|
- const accessToken = typeof configuration.accessToken === 'function'
|
|
|
|
|
- ? await configuration.accessToken()
|
|
|
|
|
- : await configuration.accessToken;
|
|
|
|
|
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
|
|
localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
|
|
|
|
|
|
|
@@ -238,13 +210,6 @@ export const SysAuthApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
const localVarQueryParameter = {} as any;
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
// authentication Bearer required
|
|
|
- // http bearer authentication required
|
|
|
|
|
- if (configuration && configuration.accessToken) {
|
|
|
|
|
- const accessToken = typeof configuration.accessToken === 'function'
|
|
|
|
|
- ? await configuration.accessToken()
|
|
|
|
|
- : await configuration.accessToken;
|
|
|
|
|
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
for (const key in localVarQueryParameter) {
|
|
for (const key in localVarQueryParameter) {
|
|
@@ -282,13 +247,6 @@ export const SysAuthApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
const localVarQueryParameter = {} as any;
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
// authentication Bearer required
|
|
|
- // http bearer authentication required
|
|
|
|
|
- if (configuration && configuration.accessToken) {
|
|
|
|
|
- const accessToken = typeof configuration.accessToken === 'function'
|
|
|
|
|
- ? await configuration.accessToken()
|
|
|
|
|
- : await configuration.accessToken;
|
|
|
|
|
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
if (accessToken !== undefined) {
|
|
if (accessToken !== undefined) {
|
|
|
localVarQueryParameter['accessToken'] = accessToken;
|
|
localVarQueryParameter['accessToken'] = accessToken;
|
|
@@ -310,6 +268,51 @@ export const SysAuthApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
options: localVarRequestOptions,
|
|
options: localVarRequestOptions,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 用户名/密码:superadmin/123456
|
|
|
|
|
+ * @summary 锁屏验证账号密码
|
|
|
|
|
+ * @param {string} password
|
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
|
+ */
|
|
|
|
|
+ apiSysAuthUnlockPost: async (password: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
+ // verify required parameter 'password' is not null or undefined
|
|
|
|
|
+ if (password === null || password === undefined) {
|
|
|
|
|
+ throw new RequiredError('password','Required parameter password was null or undefined when calling apiSysAuthUnlockPost.');
|
|
|
|
|
+ }
|
|
|
|
|
+ const localVarPath = `/api/sysAuth/unlock`;
|
|
|
|
|
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
|
|
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
|
|
+ let baseOptions;
|
|
|
|
|
+ if (configuration) {
|
|
|
|
|
+ baseOptions = configuration.baseOptions;
|
|
|
|
|
+ }
|
|
|
|
|
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
|
|
+ const localVarHeaderParameter = {} as any;
|
|
|
|
|
+ const localVarQueryParameter = {} as any;
|
|
|
|
|
+
|
|
|
|
|
+ // authentication Bearer required
|
|
|
|
|
+
|
|
|
|
|
+ if (password !== undefined) {
|
|
|
|
|
+ localVarQueryParameter['password'] = password;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
|
|
+ for (const key in localVarQueryParameter) {
|
|
|
|
|
+ query.set(key, localVarQueryParameter[key]);
|
|
|
|
|
+ }
|
|
|
|
|
+ for (const key in options.params) {
|
|
|
|
|
+ query.set(key, options.params[key]);
|
|
|
|
|
+ }
|
|
|
|
|
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
|
|
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
|
|
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
|
|
+
|
|
|
|
|
+ return {
|
|
|
|
|
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
|
|
|
+ options: localVarRequestOptions,
|
|
|
|
|
+ };
|
|
|
|
|
+ },
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
* @summary 获取登录账号
|
|
* @summary 获取登录账号
|
|
@@ -329,13 +332,6 @@ export const SysAuthApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
const localVarQueryParameter = {} as any;
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
// authentication Bearer required
|
|
|
- // http bearer authentication required
|
|
|
|
|
- if (configuration && configuration.accessToken) {
|
|
|
|
|
- const accessToken = typeof configuration.accessToken === 'function'
|
|
|
|
|
- ? await configuration.accessToken()
|
|
|
|
|
- : await configuration.accessToken;
|
|
|
|
|
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
for (const key in localVarQueryParameter) {
|
|
for (const key in localVarQueryParameter) {
|
|
@@ -372,13 +368,6 @@ export const SysAuthApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
const localVarQueryParameter = {} as any;
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
// authentication Bearer required
|
|
|
- // http bearer authentication required
|
|
|
|
|
- if (configuration && configuration.accessToken) {
|
|
|
|
|
- const accessToken = typeof configuration.accessToken === 'function'
|
|
|
|
|
- ? await configuration.accessToken()
|
|
|
|
|
- : await configuration.accessToken;
|
|
|
|
|
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
for (const key in localVarQueryParameter) {
|
|
for (const key in localVarQueryParameter) {
|
|
@@ -415,13 +404,6 @@ export const SysAuthApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
const localVarQueryParameter = {} as any;
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
// authentication Bearer required
|
|
|
- // http bearer authentication required
|
|
|
|
|
- if (configuration && configuration.accessToken) {
|
|
|
|
|
- const accessToken = typeof configuration.accessToken === 'function'
|
|
|
|
|
- ? await configuration.accessToken()
|
|
|
|
|
- : await configuration.accessToken;
|
|
|
|
|
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
for (const key in localVarQueryParameter) {
|
|
for (const key in localVarQueryParameter) {
|
|
@@ -461,13 +443,6 @@ export const SysAuthApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
const localVarFormParams = new FormData();
|
|
const localVarFormParams = new FormData();
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
// authentication Bearer required
|
|
|
- // http bearer authentication required
|
|
|
|
|
- if (configuration && configuration.accessToken) {
|
|
|
|
|
- const accessToken = typeof configuration.accessToken === 'function'
|
|
|
|
|
- ? await configuration.accessToken()
|
|
|
|
|
- : await configuration.accessToken;
|
|
|
|
|
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (userName !== undefined) {
|
|
if (userName !== undefined) {
|
|
@@ -586,6 +561,20 @@ export const SysAuthApiFp = function(configuration?: Configuration) {
|
|
|
return axios.request(axiosRequestArgs);
|
|
return axios.request(axiosRequestArgs);
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 用户名/密码:superadmin/123456
|
|
|
|
|
+ * @summary 锁屏验证账号密码
|
|
|
|
|
+ * @param {string} password
|
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
|
+ */
|
|
|
|
|
+ async apiSysAuthUnlockPost(password: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultBoolean>>> {
|
|
|
|
|
+ const localVarAxiosArgs = await SysAuthApiAxiosParamCreator(configuration).apiSysAuthUnlockPost(password, options);
|
|
|
|
|
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
|
|
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
|
|
+ return axios.request(axiosRequestArgs);
|
|
|
|
|
+ };
|
|
|
|
|
+ },
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
* @summary 获取登录账号
|
|
* @summary 获取登录账号
|
|
@@ -706,6 +695,16 @@ export const SysAuthApiFactory = function (configuration?: Configuration, basePa
|
|
|
async apiSysAuthRefreshTokenGet(accessToken?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultString>> {
|
|
async apiSysAuthRefreshTokenGet(accessToken?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultString>> {
|
|
|
return SysAuthApiFp(configuration).apiSysAuthRefreshTokenGet(accessToken, options).then((request) => request(axios, basePath));
|
|
return SysAuthApiFp(configuration).apiSysAuthRefreshTokenGet(accessToken, options).then((request) => request(axios, basePath));
|
|
|
},
|
|
},
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 用户名/密码:superadmin/123456
|
|
|
|
|
+ * @summary 锁屏验证账号密码
|
|
|
|
|
+ * @param {string} password
|
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
|
+ */
|
|
|
|
|
+ async apiSysAuthUnlockPost(password: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultBoolean>> {
|
|
|
|
|
+ return SysAuthApiFp(configuration).apiSysAuthUnlockPost(password, options).then((request) => request(axios, basePath));
|
|
|
|
|
+ },
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
* @summary 获取登录账号
|
|
* @summary 获取登录账号
|
|
@@ -817,6 +816,17 @@ export class SysAuthApi extends BaseAPI {
|
|
|
public async apiSysAuthRefreshTokenGet(accessToken?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultString>> {
|
|
public async apiSysAuthRefreshTokenGet(accessToken?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultString>> {
|
|
|
return SysAuthApiFp(this.configuration).apiSysAuthRefreshTokenGet(accessToken, options).then((request) => request(this.axios, this.basePath));
|
|
return SysAuthApiFp(this.configuration).apiSysAuthRefreshTokenGet(accessToken, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
}
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 用户名/密码:superadmin/123456
|
|
|
|
|
+ * @summary 锁屏验证账号密码
|
|
|
|
|
+ * @param {string} password
|
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
|
+ * @memberof SysAuthApi
|
|
|
|
|
+ */
|
|
|
|
|
+ public async apiSysAuthUnlockPost(password: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultBoolean>> {
|
|
|
|
|
+ return SysAuthApiFp(this.configuration).apiSysAuthUnlockPost(password, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
|
+ }
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
* @summary 获取登录账号
|
|
* @summary 获取登录账号
|