|
|
@@ -20,6 +20,7 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
import { AdminResultListDbColumnOutput } from '../models';
|
|
|
import { AdminResultListDbTableInfo } from '../models';
|
|
|
import { AdminResultListString } from '../models';
|
|
|
+import { AdminResultVisualDbTable } from '../models';
|
|
|
import { CreateEntityInput } from '../models';
|
|
|
import { CreateSeedDataInput } from '../models';
|
|
|
import { DbColumnInput } from '../models';
|
|
|
@@ -512,8 +513,20 @@ export const SysDatabaseApiAxiosParamCreator = function (configuration?: Configu
|
|
|
options: localVarRequestOptions,
|
|
|
};
|
|
|
},
|
|
|
- apiSysDatabaseVisualListGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
- const localVarPath = `/api/sysDatabase/visuallist`;
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @summary 获取表列表 🔖
|
|
|
+ * @param {string} configId ConfigId
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ apiSysDatabaseTableListConfigIdGet: async (configId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ // verify required parameter 'configId' is not null or undefined
|
|
|
+ if (configId === null || configId === undefined) {
|
|
|
+ throw new RequiredError('configId','Required parameter configId was null or undefined when calling apiSysDatabaseTableListConfigIdGet.');
|
|
|
+ }
|
|
|
+ const localVarPath = `/api/sysDatabase/tableList/{configId}`
|
|
|
+ .replace(`{${"configId"}}`, encodeURIComponent(String(configId)));
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
let baseOptions;
|
|
|
@@ -551,25 +564,20 @@ export const SysDatabaseApiAxiosParamCreator = function (configuration?: Configu
|
|
|
},
|
|
|
/**
|
|
|
*
|
|
|
- * @summary 获取表列表 🔖
|
|
|
- * @param {string} configId ConfigId
|
|
|
+ * @summary 编辑列 🔖
|
|
|
+ * @param {UpdateDbColumnInput} [body]
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- apiSysDatabaseTableListConfigIdGet: async (configId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
- // verify required parameter 'configId' is not null or undefined
|
|
|
- if (configId === null || configId === undefined) {
|
|
|
- throw new RequiredError('configId','Required parameter configId was null or undefined when calling apiSysDatabaseTableListConfigIdGet.');
|
|
|
- }
|
|
|
- const localVarPath = `/api/sysDatabase/tableList/{configId}`
|
|
|
- .replace(`{${"configId"}}`, encodeURIComponent(String(configId)));
|
|
|
+ apiSysDatabaseUpdateColumnPost: async (body?: UpdateDbColumnInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ const localVarPath = `/api/sysDatabase/updateColumn`;
|
|
|
// 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: 'GET', ...baseOptions, ...options};
|
|
|
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
@@ -582,6 +590,8 @@ export const SysDatabaseApiAxiosParamCreator = function (configuration?: Configu
|
|
|
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]);
|
|
|
@@ -592,6 +602,8 @@ export const SysDatabaseApiAxiosParamCreator = function (configuration?: Configu
|
|
|
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,
|
|
|
@@ -600,13 +612,13 @@ export const SysDatabaseApiAxiosParamCreator = function (configuration?: Configu
|
|
|
},
|
|
|
/**
|
|
|
*
|
|
|
- * @summary 编辑列 🔖
|
|
|
- * @param {UpdateDbColumnInput} [body]
|
|
|
+ * @summary 编辑表 🔖
|
|
|
+ * @param {UpdateDbTableInput} [body]
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- apiSysDatabaseUpdateColumnPost: async (body?: UpdateDbColumnInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
- const localVarPath = `/api/sysDatabase/updateColumn`;
|
|
|
+ apiSysDatabaseUpdateTablePost: async (body?: UpdateDbTableInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ const localVarPath = `/api/sysDatabase/updateTable`;
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
let baseOptions;
|
|
|
@@ -648,20 +660,19 @@ export const SysDatabaseApiAxiosParamCreator = function (configuration?: Configu
|
|
|
},
|
|
|
/**
|
|
|
*
|
|
|
- * @summary 编辑表 🔖
|
|
|
- * @param {UpdateDbTableInput} [body]
|
|
|
+ * @summary 获取可视化库列表 🔖
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- apiSysDatabaseUpdateTablePost: async (body?: UpdateDbTableInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
- const localVarPath = `/api/sysDatabase/updateTable`;
|
|
|
+ apiSysDatabaseVisualListGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ const localVarPath = `/api/sysDatabase/visualList`;
|
|
|
// 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 localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
@@ -674,8 +685,6 @@ export const SysDatabaseApiAxiosParamCreator = function (configuration?: Configu
|
|
|
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]);
|
|
|
@@ -686,8 +695,6 @@ export const SysDatabaseApiAxiosParamCreator = function (configuration?: Configu
|
|
|
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,
|
|
|
@@ -842,14 +849,6 @@ export const SysDatabaseApiFp = function(configuration?: Configuration) {
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
};
|
|
|
},
|
|
|
- async apiSysDatabaseVisualListGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListString>>> {
|
|
|
- const localVarAxiosArgs = await SysDatabaseApiAxiosParamCreator(configuration).apiSysDatabaseVisualListGet(options);
|
|
|
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
- return axios.request(axiosRequestArgs);
|
|
|
- };
|
|
|
- },
|
|
|
-
|
|
|
/**
|
|
|
*
|
|
|
* @summary 获取表列表 🔖
|
|
|
@@ -892,6 +891,19 @@ export const SysDatabaseApiFp = function(configuration?: Configuration) {
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
};
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @summary 获取可视化库列表 🔖
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ async apiSysDatabaseVisualListGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultVisualDbTable>>> {
|
|
|
+ const localVarAxiosArgs = await SysDatabaseApiAxiosParamCreator(configuration).apiSysDatabaseVisualListGet(options);
|
|
|
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
+ return axios.request(axiosRequestArgs);
|
|
|
+ };
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
|
|
|
@@ -1000,10 +1012,6 @@ export const SysDatabaseApiFactory = function (configuration?: Configuration, ba
|
|
|
async apiSysDatabaseListGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListString>> {
|
|
|
return SysDatabaseApiFp(configuration).apiSysDatabaseListGet(options).then((request) => request(axios, basePath));
|
|
|
},
|
|
|
- async apiSysDatabaseVisualListGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListString>> {
|
|
|
- return SysDatabaseApiFp(configuration).apiSysDatabaseVisualListGet(options).then((request) => request(axios, basePath));
|
|
|
- },
|
|
|
-
|
|
|
/**
|
|
|
*
|
|
|
* @summary 获取表列表 🔖
|
|
|
@@ -1034,6 +1042,15 @@ export const SysDatabaseApiFactory = function (configuration?: Configuration, ba
|
|
|
async apiSysDatabaseUpdateTablePost(body?: UpdateDbTableInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
|
return SysDatabaseApiFp(configuration).apiSysDatabaseUpdateTablePost(body, options).then((request) => request(axios, basePath));
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @summary 获取可视化库列表 🔖
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ async apiSysDatabaseVisualListGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultVisualDbTable>> {
|
|
|
+ return SysDatabaseApiFp(configuration).apiSysDatabaseVisualListGet(options).then((request) => request(axios, basePath));
|
|
|
+ },
|
|
|
};
|
|
|
};
|
|
|
|
|
|
@@ -1153,10 +1170,6 @@ export class SysDatabaseApi extends BaseAPI {
|
|
|
public async apiSysDatabaseListGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListString>> {
|
|
|
return SysDatabaseApiFp(this.configuration).apiSysDatabaseListGet(options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
- public async apiSysDatabaseVisualListGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListString>> {
|
|
|
- return SysDatabaseApiFp(this.configuration).apiSysDatabaseVisualListGet(options).then((request) => request(this.axios, this.basePath));
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
*
|
|
|
* @summary 获取表列表 🔖
|
|
|
@@ -1190,4 +1203,14 @@ export class SysDatabaseApi extends BaseAPI {
|
|
|
public async apiSysDatabaseUpdateTablePost(body?: UpdateDbTableInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
|
return SysDatabaseApiFp(this.configuration).apiSysDatabaseUpdateTablePost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @summary 获取可视化库列表 🔖
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ * @memberof SysDatabaseApi
|
|
|
+ */
|
|
|
+ public async apiSysDatabaseVisualListGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultVisualDbTable>> {
|
|
|
+ return SysDatabaseApiFp(this.configuration).apiSysDatabaseVisualListGet(options).then((request) => request(this.axios, this.basePath));
|
|
|
+ }
|
|
|
}
|