|
|
@@ -1,7 +1,7 @@
|
|
|
/* tslint:disable */
|
|
|
/* eslint-disable */
|
|
|
/**
|
|
|
- * Admin.NET 通用权限开发平台
|
|
|
+ * 所有接口
|
|
|
* 让 .NET 开发更简单、更通用、更流行。整合最新技术,模块插件式开发,前后端分离,开箱即用。<br/><u><b><font color='FF0000'> 👮不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!</font></b></u>
|
|
|
*
|
|
|
* OpenAPI spec version: 1.0.0
|
|
|
@@ -11,13 +11,13 @@
|
|
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
|
* Do not edit the class manually.
|
|
|
*/
|
|
|
-
|
|
|
import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
import { Configuration } from '../configuration';
|
|
|
// Some imports not used depending on template conditions
|
|
|
// @ts-ignore
|
|
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
|
import { AddCodeGenInput } from '../models';
|
|
|
+import { AdminResultDictionaryStringString } from '../models';
|
|
|
import { AdminResultListColumnOuput } from '../models';
|
|
|
import { AdminResultListDatabaseOutput } from '../models';
|
|
|
import { AdminResultListString } from '../models';
|
|
|
@@ -55,13 +55,6 @@ export const SysCodeGenApiAxiosParamCreator = function (configuration?: Configur
|
|
|
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';
|
|
|
|
|
|
@@ -102,13 +95,6 @@ export const SysCodeGenApiAxiosParamCreator = function (configuration?: Configur
|
|
|
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) {
|
|
|
@@ -157,13 +143,6 @@ export const SysCodeGenApiAxiosParamCreator = function (configuration?: Configur
|
|
|
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) {
|
|
|
@@ -200,13 +179,6 @@ export const SysCodeGenApiAxiosParamCreator = function (configuration?: Configur
|
|
|
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) {
|
|
|
@@ -244,13 +216,6 @@ export const SysCodeGenApiAxiosParamCreator = function (configuration?: Configur
|
|
|
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';
|
|
|
|
|
|
@@ -296,13 +261,6 @@ export const SysCodeGenApiAxiosParamCreator = function (configuration?: Configur
|
|
|
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;
|
|
|
- }
|
|
|
|
|
|
if (id !== undefined) {
|
|
|
localVarQueryParameter['Id'] = id;
|
|
|
@@ -344,13 +302,47 @@ export const SysCodeGenApiAxiosParamCreator = function (configuration?: Configur
|
|
|
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 {SysCodeGen} [body]
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ apiSysCodeGenPreviewPost: async (body?: SysCodeGen, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ const localVarPath = `/api/sysCodeGen/preview`;
|
|
|
+ // 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
|
|
|
|
|
|
localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
|
|
|
|
|
|
@@ -392,13 +384,6 @@ export const SysCodeGenApiAxiosParamCreator = function (configuration?: Configur
|
|
|
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';
|
|
|
|
|
|
@@ -445,13 +430,6 @@ export const SysCodeGenApiAxiosParamCreator = function (configuration?: Configur
|
|
|
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) {
|
|
|
@@ -489,13 +467,6 @@ export const SysCodeGenApiAxiosParamCreator = function (configuration?: Configur
|
|
|
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';
|
|
|
|
|
|
@@ -623,6 +594,20 @@ export const SysCodeGenApiFp = function(configuration?: Configuration) {
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
};
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @summary 获取代码生成预览 🔖
|
|
|
+ * @param {SysCodeGen} [body]
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ async apiSysCodeGenPreviewPost(body?: SysCodeGen, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultDictionaryStringString>>> {
|
|
|
+ const localVarAxiosArgs = await SysCodeGenApiAxiosParamCreator(configuration).apiSysCodeGenPreviewPost(body, options);
|
|
|
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
+ return axios.request(axiosRequestArgs);
|
|
|
+ };
|
|
|
+ },
|
|
|
/**
|
|
|
*
|
|
|
* @summary 代码生成到本地 🔖
|
|
|
@@ -743,6 +728,16 @@ export const SysCodeGenApiFactory = function (configuration?: Configuration, bas
|
|
|
async apiSysCodeGenPagePost(body?: CodeGenInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSqlSugarPagedListSysCodeGen>> {
|
|
|
return SysCodeGenApiFp(configuration).apiSysCodeGenPagePost(body, options).then((request) => request(axios, basePath));
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @summary 获取代码生成预览 🔖
|
|
|
+ * @param {SysCodeGen} [body]
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ async apiSysCodeGenPreviewPost(body?: SysCodeGen, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultDictionaryStringString>> {
|
|
|
+ return SysCodeGenApiFp(configuration).apiSysCodeGenPreviewPost(body, options).then((request) => request(axios, basePath));
|
|
|
+ },
|
|
|
/**
|
|
|
*
|
|
|
* @summary 代码生成到本地 🔖
|
|
|
@@ -859,6 +854,17 @@ export class SysCodeGenApi extends BaseAPI {
|
|
|
public async apiSysCodeGenPagePost(body?: CodeGenInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSqlSugarPagedListSysCodeGen>> {
|
|
|
return SysCodeGenApiFp(this.configuration).apiSysCodeGenPagePost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @summary 获取代码生成预览 🔖
|
|
|
+ * @param {SysCodeGen} [body]
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ * @memberof SysCodeGenApi
|
|
|
+ */
|
|
|
+ public async apiSysCodeGenPreviewPost(body?: SysCodeGen, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultDictionaryStringString>> {
|
|
|
+ return SysCodeGenApiFp(this.configuration).apiSysCodeGenPreviewPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
+ }
|
|
|
/**
|
|
|
*
|
|
|
* @summary 代码生成到本地 🔖
|