|
|
@@ -60,13 +60,6 @@ export const SysUserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
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';
|
|
|
|
|
|
@@ -107,13 +100,6 @@ export const SysUserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
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;
|
|
|
- }
|
|
|
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
for (const key in localVarQueryParameter) {
|
|
|
@@ -151,13 +137,6 @@ export const SysUserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
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';
|
|
|
|
|
|
@@ -199,13 +178,6 @@ export const SysUserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
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';
|
|
|
|
|
|
@@ -247,13 +219,6 @@ export const SysUserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
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';
|
|
|
|
|
|
@@ -295,13 +260,6 @@ export const SysUserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
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';
|
|
|
|
|
|
@@ -348,13 +306,6 @@ export const SysUserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
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;
|
|
|
- }
|
|
|
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
for (const key in localVarQueryParameter) {
|
|
|
@@ -397,13 +348,6 @@ export const SysUserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
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;
|
|
|
- }
|
|
|
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
for (const key in localVarQueryParameter) {
|
|
|
@@ -441,13 +385,6 @@ export const SysUserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
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';
|
|
|
|
|
|
@@ -489,13 +426,6 @@ export const SysUserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
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';
|
|
|
|
|
|
@@ -517,6 +447,48 @@ export const SysUserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
options: localVarRequestOptions,
|
|
|
};
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @summary 更新用户语言 🔖
|
|
|
+ * @param {string} langCode
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ apiSysUserSetLangCodeLangCodePost: async (langCode: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ // verify required parameter 'langCode' is not null or undefined
|
|
|
+ if (langCode === null || langCode === undefined) {
|
|
|
+ throw new RequiredError('langCode','Required parameter langCode was null or undefined when calling apiSysUserSetLangCodeLangCodePost.');
|
|
|
+ }
|
|
|
+ const localVarPath = `/api/sysUser/setLangCode/{langCode}`
|
|
|
+ .replace(`{${"langCode"}}`, encodeURIComponent(String(langCode)));
|
|
|
+ // 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
|
|
|
+
|
|
|
+ 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 设置用户状态 🔖
|
|
|
@@ -537,13 +509,6 @@ export const SysUserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
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';
|
|
|
|
|
|
@@ -585,13 +550,6 @@ export const SysUserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
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';
|
|
|
|
|
|
@@ -633,13 +591,6 @@ export const SysUserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
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';
|
|
|
|
|
|
@@ -809,6 +760,20 @@ export const SysUserApiFp = function(configuration?: Configuration) {
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
};
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @summary 更新用户语言 🔖
|
|
|
+ * @param {string} langCode
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ async apiSysUserSetLangCodeLangCodePost(langCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
|
|
|
+ const localVarAxiosArgs = await SysUserApiAxiosParamCreator(configuration).apiSysUserSetLangCodeLangCodePost(langCode, options);
|
|
|
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
+ return axios.request(axiosRequestArgs);
|
|
|
+ };
|
|
|
+ },
|
|
|
/**
|
|
|
*
|
|
|
* @summary 设置用户状态 🔖
|
|
|
@@ -959,6 +924,16 @@ export const SysUserApiFactory = function (configuration?: Configuration, basePa
|
|
|
async apiSysUserResetPwdPost(body?: ResetPwdUserInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultString>> {
|
|
|
return SysUserApiFp(configuration).apiSysUserResetPwdPost(body, options).then((request) => request(axios, basePath));
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @summary 更新用户语言 🔖
|
|
|
+ * @param {string} langCode
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ async apiSysUserSetLangCodeLangCodePost(langCode: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
|
+ return SysUserApiFp(configuration).apiSysUserSetLangCodeLangCodePost(langCode, options).then((request) => request(axios, basePath));
|
|
|
+ },
|
|
|
/**
|
|
|
*
|
|
|
* @summary 设置用户状态 🔖
|
|
|
@@ -1108,6 +1083,17 @@ export class SysUserApi extends BaseAPI {
|
|
|
public async apiSysUserResetPwdPost(body?: ResetPwdUserInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultString>> {
|
|
|
return SysUserApiFp(this.configuration).apiSysUserResetPwdPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @summary 更新用户语言 🔖
|
|
|
+ * @param {string} langCode
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ * @memberof SysUserApi
|
|
|
+ */
|
|
|
+ public async apiSysUserSetLangCodeLangCodePost(langCode: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
|
+ return SysUserApiFp(this.configuration).apiSysUserSetLangCodeLangCodePost(langCode, options).then((request) => request(this.axios, this.basePath));
|
|
|
+ }
|
|
|
/**
|
|
|
*
|
|
|
* @summary 设置用户状态 🔖
|