|
|
|
|
@ -84,54 +84,6 @@ export const SysTenantApiAxiosParamCreator = function (configuration?: Configura
|
|
|
|
|
options: localVarRequestOptions,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @summary 创建租户数据库 🔖
|
|
|
|
|
* @param {TenantInput} [body]
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
*/
|
|
|
|
|
apiSysTenantCreateDbPost: async (body?: TenantInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
const localVarPath = `/api/sysTenant/createDb`;
|
|
|
|
|
// 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 删除租户 🔖
|
|
|
|
|
@ -228,6 +180,54 @@ export const SysTenantApiAxiosParamCreator = function (configuration?: Configura
|
|
|
|
|
options: localVarRequestOptions,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @summary 创建租户数据库 🔖
|
|
|
|
|
* @param {TenantInput} [body]
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
*/
|
|
|
|
|
apiSysTenantInitTenantDbPost: async (body?: TenantInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
const localVarPath = `/api/sysTenant/initTenantDb`;
|
|
|
|
|
// 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 获取租户管理员角色拥有菜单Id集合 🔖
|
|
|
|
|
@ -420,6 +420,49 @@ export const SysTenantApiAxiosParamCreator = function (configuration?: Configura
|
|
|
|
|
options: localVarRequestOptions,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @summary 同步所有租户数据库 🔖
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
*/
|
|
|
|
|
apiSysTenantSyncTenantDbPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
const localVarPath = `/api/sysTenant/syncTenantDb`;
|
|
|
|
|
// 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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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 更新租户 🔖
|
|
|
|
|
@ -539,20 +582,6 @@ export const SysTenantApiFp = function(configuration?: Configuration) {
|
|
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @summary 创建租户数据库 🔖
|
|
|
|
|
* @param {TenantInput} [body]
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
*/
|
|
|
|
|
async apiSysTenantCreateDbPost(body?: TenantInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
|
|
|
|
|
const localVarAxiosArgs = await SysTenantApiAxiosParamCreator(configuration).apiSysTenantCreateDbPost(body, options);
|
|
|
|
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
|
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @summary 删除租户 🔖
|
|
|
|
|
@ -581,6 +610,20 @@ export const SysTenantApiFp = function(configuration?: Configuration) {
|
|
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @summary 创建租户数据库 🔖
|
|
|
|
|
* @param {TenantInput} [body]
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
*/
|
|
|
|
|
async apiSysTenantInitTenantDbPost(body?: TenantInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
|
|
|
|
|
const localVarAxiosArgs = await SysTenantApiAxiosParamCreator(configuration).apiSysTenantInitTenantDbPost(body, options);
|
|
|
|
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
|
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @summary 获取租户管理员角色拥有菜单Id集合 🔖
|
|
|
|
|
@ -637,6 +680,19 @@ export const SysTenantApiFp = function(configuration?: Configuration) {
|
|
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @summary 同步所有租户数据库 🔖
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
*/
|
|
|
|
|
async apiSysTenantSyncTenantDbPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
|
|
|
|
|
const localVarAxiosArgs = await SysTenantApiAxiosParamCreator(configuration).apiSysTenantSyncTenantDbPost(options);
|
|
|
|
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
|
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @summary 更新租户 🔖
|
|
|
|
|
@ -684,16 +740,6 @@ export const SysTenantApiFactory = function (configuration?: Configuration, base
|
|
|
|
|
async apiSysTenantAddPost(body?: AddTenantInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
|
|
|
return SysTenantApiFp(configuration).apiSysTenantAddPost(body, options).then((request) => request(axios, basePath));
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @summary 创建租户数据库 🔖
|
|
|
|
|
* @param {TenantInput} [body]
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
*/
|
|
|
|
|
async apiSysTenantCreateDbPost(body?: TenantInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
|
|
|
return SysTenantApiFp(configuration).apiSysTenantCreateDbPost(body, options).then((request) => request(axios, basePath));
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @summary 删除租户 🔖
|
|
|
|
|
@ -714,6 +760,16 @@ export const SysTenantApiFactory = function (configuration?: Configuration, base
|
|
|
|
|
async apiSysTenantGrantMenuPost(body?: RoleMenuInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
|
|
|
return SysTenantApiFp(configuration).apiSysTenantGrantMenuPost(body, options).then((request) => request(axios, basePath));
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @summary 创建租户数据库 🔖
|
|
|
|
|
* @param {TenantInput} [body]
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
*/
|
|
|
|
|
async apiSysTenantInitTenantDbPost(body?: TenantInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
|
|
|
return SysTenantApiFp(configuration).apiSysTenantInitTenantDbPost(body, options).then((request) => request(axios, basePath));
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @summary 获取租户管理员角色拥有菜单Id集合 🔖
|
|
|
|
|
@ -754,6 +810,15 @@ export const SysTenantApiFactory = function (configuration?: Configuration, base
|
|
|
|
|
async apiSysTenantSetStatusPost(body?: TenantInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultInt32>> {
|
|
|
|
|
return SysTenantApiFp(configuration).apiSysTenantSetStatusPost(body, options).then((request) => request(axios, basePath));
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @summary 同步所有租户数据库 🔖
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
*/
|
|
|
|
|
async apiSysTenantSyncTenantDbPost(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
|
|
|
return SysTenantApiFp(configuration).apiSysTenantSyncTenantDbPost(options).then((request) => request(axios, basePath));
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @summary 更新租户 🔖
|
|
|
|
|
@ -795,17 +860,6 @@ export class SysTenantApi extends BaseAPI {
|
|
|
|
|
public async apiSysTenantAddPost(body?: AddTenantInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
|
|
|
return SysTenantApiFp(this.configuration).apiSysTenantAddPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @summary 创建租户数据库 🔖
|
|
|
|
|
* @param {TenantInput} [body]
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
* @memberof SysTenantApi
|
|
|
|
|
*/
|
|
|
|
|
public async apiSysTenantCreateDbPost(body?: TenantInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
|
|
|
return SysTenantApiFp(this.configuration).apiSysTenantCreateDbPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @summary 删除租户 🔖
|
|
|
|
|
@ -828,6 +882,17 @@ export class SysTenantApi extends BaseAPI {
|
|
|
|
|
public async apiSysTenantGrantMenuPost(body?: RoleMenuInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
|
|
|
return SysTenantApiFp(this.configuration).apiSysTenantGrantMenuPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @summary 创建租户数据库 🔖
|
|
|
|
|
* @param {TenantInput} [body]
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
* @memberof SysTenantApi
|
|
|
|
|
*/
|
|
|
|
|
public async apiSysTenantInitTenantDbPost(body?: TenantInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
|
|
|
return SysTenantApiFp(this.configuration).apiSysTenantInitTenantDbPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @summary 获取租户管理员角色拥有菜单Id集合 🔖
|
|
|
|
|
@ -872,6 +937,16 @@ export class SysTenantApi extends BaseAPI {
|
|
|
|
|
public async apiSysTenantSetStatusPost(body?: TenantInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultInt32>> {
|
|
|
|
|
return SysTenantApiFp(this.configuration).apiSysTenantSetStatusPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @summary 同步所有租户数据库 🔖
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
* @memberof SysTenantApi
|
|
|
|
|
*/
|
|
|
|
|
public async apiSysTenantSyncTenantDbPost(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
|
|
|
return SysTenantApiFp(this.configuration).apiSysTenantSyncTenantDbPost(options).then((request) => request(this.axios, this.basePath));
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @summary 更新租户 🔖
|
|
|
|
|
|