|
@@ -30,6 +30,7 @@ import { DeleteUserInput } from '../models';
|
|
|
import { PageUserInput } from '../models';
|
|
import { PageUserInput } from '../models';
|
|
|
import { ResetPwdUserInput } from '../models';
|
|
import { ResetPwdUserInput } from '../models';
|
|
|
import { SysUser } from '../models';
|
|
import { SysUser } from '../models';
|
|
|
|
|
+import { UnlockLoginInput } from '../models';
|
|
|
import { UpdateUserInput } from '../models';
|
|
import { UpdateUserInput } from '../models';
|
|
|
import { UserInput } from '../models';
|
|
import { UserInput } from '../models';
|
|
|
import { UserRoleInput } from '../models';
|
|
import { UserRoleInput } from '../models';
|
|
@@ -564,6 +565,54 @@ export const SysUserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
options: localVarRequestOptions,
|
|
options: localVarRequestOptions,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
+ /**
|
|
|
|
|
+ *
|
|
|
|
|
+ * @summary 解除登录锁定
|
|
|
|
|
+ * @param {UnlockLoginInput} [body]
|
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
|
+ */
|
|
|
|
|
+ apiSysUserUnlockLoginPost: async (body?: UnlockLoginInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
+ const localVarPath = `/api/sysUser/unlockLogin`;
|
|
|
|
|
+ // 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
|
|
|
|
|
+ // 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';
|
|
|
|
|
+
|
|
|
|
|
+ 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};
|
|
|
|
|
+ const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
|
|
|
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
|
|
|
|
+
|
|
|
|
|
+ return {
|
|
|
|
|
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
|
|
|
+ options: localVarRequestOptions,
|
|
|
|
|
+ };
|
|
|
|
|
+ },
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
* @summary 更新用户
|
|
* @summary 更新用户
|
|
@@ -774,6 +823,20 @@ export const SysUserApiFp = function(configuration?: Configuration) {
|
|
|
return axios.request(axiosRequestArgs);
|
|
return axios.request(axiosRequestArgs);
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
+ /**
|
|
|
|
|
+ *
|
|
|
|
|
+ * @summary 解除登录锁定
|
|
|
|
|
+ * @param {UnlockLoginInput} [body]
|
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
|
+ */
|
|
|
|
|
+ async apiSysUserUnlockLoginPost(body?: UnlockLoginInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
|
|
|
|
|
+ const localVarAxiosArgs = await SysUserApiAxiosParamCreator(configuration).apiSysUserUnlockLoginPost(body, options);
|
|
|
|
|
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
|
|
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
|
|
+ return axios.request(axiosRequestArgs);
|
|
|
|
|
+ };
|
|
|
|
|
+ },
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
* @summary 更新用户
|
|
* @summary 更新用户
|
|
@@ -906,6 +969,16 @@ export const SysUserApiFactory = function (configuration?: Configuration, basePa
|
|
|
async apiSysUserSetStatusPost(body?: UserInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultInt32>> {
|
|
async apiSysUserSetStatusPost(body?: UserInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultInt32>> {
|
|
|
return SysUserApiFp(configuration).apiSysUserSetStatusPost(body, options).then((request) => request(axios, basePath));
|
|
return SysUserApiFp(configuration).apiSysUserSetStatusPost(body, options).then((request) => request(axios, basePath));
|
|
|
},
|
|
},
|
|
|
|
|
+ /**
|
|
|
|
|
+ *
|
|
|
|
|
+ * @summary 解除登录锁定
|
|
|
|
|
+ * @param {UnlockLoginInput} [body]
|
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
|
+ */
|
|
|
|
|
+ async apiSysUserUnlockLoginPost(body?: UnlockLoginInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
|
|
|
+ return SysUserApiFp(configuration).apiSysUserUnlockLoginPost(body, options).then((request) => request(axios, basePath));
|
|
|
|
|
+ },
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
* @summary 更新用户
|
|
* @summary 更新用户
|
|
@@ -1046,6 +1119,17 @@ export class SysUserApi extends BaseAPI {
|
|
|
public async apiSysUserSetStatusPost(body?: UserInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultInt32>> {
|
|
public async apiSysUserSetStatusPost(body?: UserInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultInt32>> {
|
|
|
return SysUserApiFp(this.configuration).apiSysUserSetStatusPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
return SysUserApiFp(this.configuration).apiSysUserSetStatusPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
}
|
|
|
|
|
+ /**
|
|
|
|
|
+ *
|
|
|
|
|
+ * @summary 解除登录锁定
|
|
|
|
|
+ * @param {UnlockLoginInput} [body]
|
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
|
+ * @memberof SysUserApi
|
|
|
|
|
+ */
|
|
|
|
|
+ public async apiSysUserUnlockLoginPost(body?: UnlockLoginInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
|
|
|
+ return SysUserApiFp(this.configuration).apiSysUserUnlockLoginPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
|
+ }
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
* @summary 更新用户
|
|
* @summary 更新用户
|