|
|
@@ -23,9 +23,9 @@ import { AdminResultListSysLdap } from '../models';
|
|
|
import { AdminResultSqlSugarPagedListSysLdap } from '../models';
|
|
|
import { AdminResultSysLdap } from '../models';
|
|
|
import { DeleteSysLdapInput } from '../models';
|
|
|
+import { SyncSysLdapInput } from '../models';
|
|
|
import { SysLdapInput } from '../models';
|
|
|
import { UpdateSysLdapInput } from '../models';
|
|
|
-import { UserSyncSysLdapInput } from '../models';
|
|
|
/**
|
|
|
* SysLdapApi - axios parameter creator
|
|
|
* @export
|
|
|
@@ -130,54 +130,6 @@ export const SysLdapApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
},
|
|
|
/**
|
|
|
*
|
|
|
- * @summary 删除系统域登录信息配置
|
|
|
- * @param {UserSyncSysLdapInput} [body]
|
|
|
- * @param {*} [options] Override http request option.
|
|
|
- * @throws {RequiredError}
|
|
|
- */
|
|
|
- apiSysLdapUserSyncPost: async (body?: UserSyncSysLdapInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
- const localVarPath = `/api/sysLdap/userSync`;
|
|
|
- // 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 获取系统域登录信息配置详情
|
|
|
* @param {number} id 主键Id
|
|
|
* @param {*} [options] Override http request option.
|
|
|
@@ -356,6 +308,54 @@ export const SysLdapApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
},
|
|
|
/**
|
|
|
*
|
|
|
+ * @summary 同步域用户
|
|
|
+ * @param {SyncSysLdapInput} [body]
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ apiSysLdapSyncSysLdapUserPost: async (body?: SyncSysLdapInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ const localVarPath = `/api/sysLdap/syncSysLdapUser`;
|
|
|
+ // 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 更新系统域登录信息配置
|
|
|
* @param {UpdateSysLdapInput} [body]
|
|
|
* @param {*} [options] Override http request option.
|
|
|
@@ -441,20 +441,6 @@ export const SysLdapApiFp = function(configuration?: Configuration) {
|
|
|
},
|
|
|
/**
|
|
|
*
|
|
|
- * @summary 同步系统域登录信息配置
|
|
|
- * @param {UserSyncSysLdapInput} [body]
|
|
|
- * @param {*} [options] Override http request option.
|
|
|
- * @throws {RequiredError}
|
|
|
- */
|
|
|
- async apiSysLdapUserSyncPost(body?: UserSyncSysLdapInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
|
|
|
- const localVarAxiosArgs = await SysLdapApiAxiosParamCreator(configuration).apiSysLdapUserSyncPost(body, options);
|
|
|
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
- return axios.request(axiosRequestArgs);
|
|
|
- };
|
|
|
- },
|
|
|
- /**
|
|
|
- *
|
|
|
* @summary 获取系统域登录信息配置详情
|
|
|
* @param {number} id 主键Id
|
|
|
* @param {*} [options] Override http request option.
|
|
|
@@ -503,6 +489,20 @@ export const SysLdapApiFp = function(configuration?: Configuration) {
|
|
|
},
|
|
|
/**
|
|
|
*
|
|
|
+ * @summary 同步域用户
|
|
|
+ * @param {SyncSysLdapInput} [body]
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ async apiSysLdapSyncSysLdapUserPost(body?: SyncSysLdapInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
|
|
|
+ const localVarAxiosArgs = await SysLdapApiAxiosParamCreator(configuration).apiSysLdapSyncSysLdapUserPost(body, options);
|
|
|
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
+ return axios.request(axiosRequestArgs);
|
|
|
+ };
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ *
|
|
|
* @summary 更新系统域登录信息配置
|
|
|
* @param {UpdateSysLdapInput} [body]
|
|
|
* @param {*} [options] Override http request option.
|
|
|
@@ -546,16 +546,6 @@ export const SysLdapApiFactory = function (configuration?: Configuration, basePa
|
|
|
},
|
|
|
/**
|
|
|
*
|
|
|
- * @summary 同步系统域登录信息配置
|
|
|
- * @param {UserSyncSysLdapInput} [body]
|
|
|
- * @param {*} [options] Override http request option.
|
|
|
- * @throws {RequiredError}
|
|
|
- */
|
|
|
- async apiSysLdapUserSyncPost(body?: UserSyncSysLdapInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
|
- return SysLdapApiFp(configuration).apiSysLdapUserSyncPost(body, options).then((request) => request(axios, basePath));
|
|
|
- },
|
|
|
- /**
|
|
|
- *
|
|
|
* @summary 获取系统域登录信息配置详情
|
|
|
* @param {number} id 主键Id
|
|
|
* @param {*} [options] Override http request option.
|
|
|
@@ -592,6 +582,16 @@ export const SysLdapApiFactory = function (configuration?: Configuration, basePa
|
|
|
},
|
|
|
/**
|
|
|
*
|
|
|
+ * @summary 同步域用户
|
|
|
+ * @param {SyncSysLdapInput} [body]
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ async apiSysLdapSyncSysLdapUserPost(body?: SyncSysLdapInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
|
+ return SysLdapApiFp(configuration).apiSysLdapSyncSysLdapUserPost(body, options).then((request) => request(axios, basePath));
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ *
|
|
|
* @summary 更新系统域登录信息配置
|
|
|
* @param {UpdateSysLdapInput} [body]
|
|
|
* @param {*} [options] Override http request option.
|
|
|
@@ -634,17 +634,6 @@ export class SysLdapApi extends BaseAPI {
|
|
|
}
|
|
|
/**
|
|
|
*
|
|
|
- * @summary 同步系统域登录信息配置
|
|
|
- * @param {UserSyncSysLdapInput} [body]
|
|
|
- * @param {*} [options] Override http request option.
|
|
|
- * @throws {RequiredError}
|
|
|
- * @memberof SysLdapApi
|
|
|
- */
|
|
|
- public async apiSysLdapUserSyncPost(body?: UserSyncSysLdapInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
|
- return SysLdapApiFp(this.configuration).apiSysLdapUserSyncPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
- }
|
|
|
- /**
|
|
|
- *
|
|
|
* @summary 获取系统域登录信息配置详情
|
|
|
* @param {number} id 主键Id
|
|
|
* @param {*} [options] Override http request option.
|
|
|
@@ -684,6 +673,17 @@ export class SysLdapApi extends BaseAPI {
|
|
|
}
|
|
|
/**
|
|
|
*
|
|
|
+ * @summary 同步域用户
|
|
|
+ * @param {SyncSysLdapInput} [body]
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ * @memberof SysLdapApi
|
|
|
+ */
|
|
|
+ public async apiSysLdapSyncSysLdapUserPost(body?: SyncSysLdapInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
|
+ return SysLdapApiFp(this.configuration).apiSysLdapSyncSysLdapUserPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ *
|
|
|
* @summary 更新系统域登录信息配置
|
|
|
* @param {UpdateSysLdapInput} [body]
|
|
|
* @param {*} [options] Override http request option.
|