/* tslint:disable */ /* eslint-disable */ /** * Admin.NET 通用权限开发平台 * 让 .NET 开发更简单、更通用、更流行。整合最新技术,模块插件式开发,前后端分离,开箱即用。
👮不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! * * OpenAPI spec version: 1.0.0 * * * NOTE: This class is auto generated by the swagger code generator program. * 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 { AdminResultIActionResult } from '../models'; import { AdminResultListApiOutput } from '../models'; import { AdminResultListString } from '../models'; import { AdminResultSmKeyPairOutput } from '../models'; import { AdminResultString } from '../models'; /** * SysCommonApi - axios parameter creator * @export */ export const SysCommonApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @summary 获取所有接口/动态API 🔖 * @param {string} [groupName] * @param {boolean} [isAppApi] * @param {*} [options] Override http request option. * @throws {RequiredError} */ apiSysCommonApiListGet: async (groupName?: string, isAppApi?: boolean, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/api/sysCommon/apiList`; // 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 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; } if (groupName !== undefined) { localVarQueryParameter['groupName'] = groupName; } if (isAppApi !== undefined) { localVarQueryParameter['isAppApi'] = isAppApi; } 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 获取所有移动端接口 * @param {*} [options] Override http request option. * @throws {RequiredError} */ apiSysCommonAppApiListGet: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/api/sysCommon/appApiList`; // 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 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 下载标记错误的临时 Excel(全局) 🔖 * @param {string} [fileName] * @param {*} [options] Override http request option. * @throws {RequiredError} */ apiSysCommonDownloadErrorExcelTempPost: async (fileName?: string, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/api/sysCommon/downloadErrorExcelTemp`; // 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; } if (fileName !== undefined) { localVarQueryParameter['fileName'] = fileName; } 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 获取MD5加密字符串 🏆 * @param {string} text * @param {boolean} uppercase * @param {*} [options] Override http request option. * @throws {RequiredError} */ apiSysCommonMD5EncryptTextUppercaseGet: async (text: string, uppercase: boolean, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'text' is not null or undefined if (text === null || text === undefined) { throw new RequiredError('text','Required parameter text was null or undefined when calling apiSysCommonMD5EncryptTextUppercaseGet.'); } // verify required parameter 'uppercase' is not null or undefined if (uppercase === null || uppercase === undefined) { throw new RequiredError('uppercase','Required parameter uppercase was null or undefined when calling apiSysCommonMD5EncryptTextUppercaseGet.'); } const localVarPath = `/api/sysCommon/mD5Encrypt/{text}/{uppercase}` .replace(`{${"text"}}`, encodeURIComponent(String(text))) .replace(`{${"uppercase"}}`, encodeURIComponent(String(uppercase))); // 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 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 获取机器序列号 🔖 * @param {*} [options] Override http request option. * @throws {RequiredError} */ apiSysCommonMachineSerialKeyGet: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/api/sysCommon/machineSerialKey`; // 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 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 获取国密公钥私钥对 🏆 * @param {*} [options] Override http request option. * @throws {RequiredError} */ apiSysCommonSmKeyPairGet: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/api/sysCommon/smKeyPair`; // 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 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, }; }, } }; /** * SysCommonApi - functional programming interface * @export */ export const SysCommonApiFp = function(configuration?: Configuration) { return { /** * * @summary 获取所有接口/动态API 🔖 * @param {string} [groupName] * @param {boolean} [isAppApi] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async apiSysCommonApiListGet(groupName?: string, isAppApi?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysCommonApiAxiosParamCreator(configuration).apiSysCommonApiListGet(groupName, isAppApi, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @summary 获取所有移动端接口 * @param {*} [options] Override http request option. * @throws {RequiredError} */ async apiSysCommonAppApiListGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysCommonApiAxiosParamCreator(configuration).apiSysCommonAppApiListGet(options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @summary 下载标记错误的临时 Excel(全局) 🔖 * @param {string} [fileName] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async apiSysCommonDownloadErrorExcelTempPost(fileName?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysCommonApiAxiosParamCreator(configuration).apiSysCommonDownloadErrorExcelTempPost(fileName, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @summary 获取MD5加密字符串 🏆 * @param {string} text * @param {boolean} uppercase * @param {*} [options] Override http request option. * @throws {RequiredError} */ async apiSysCommonMD5EncryptTextUppercaseGet(text: string, uppercase: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysCommonApiAxiosParamCreator(configuration).apiSysCommonMD5EncryptTextUppercaseGet(text, uppercase, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @summary 获取机器序列号 🔖 * @param {*} [options] Override http request option. * @throws {RequiredError} */ async apiSysCommonMachineSerialKeyGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysCommonApiAxiosParamCreator(configuration).apiSysCommonMachineSerialKeyGet(options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @summary 获取国密公钥私钥对 🏆 * @param {*} [options] Override http request option. * @throws {RequiredError} */ async apiSysCommonSmKeyPairGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysCommonApiAxiosParamCreator(configuration).apiSysCommonSmKeyPairGet(options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, } }; /** * SysCommonApi - factory interface * @export */ export const SysCommonApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { return { /** * * @summary 获取所有接口/动态API 🔖 * @param {string} [groupName] * @param {boolean} [isAppApi] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async apiSysCommonApiListGet(groupName?: string, isAppApi?: boolean, options?: AxiosRequestConfig): Promise> { return SysCommonApiFp(configuration).apiSysCommonApiListGet(groupName, isAppApi, options).then((request) => request(axios, basePath)); }, /** * * @summary 获取所有移动端接口 * @param {*} [options] Override http request option. * @throws {RequiredError} */ async apiSysCommonAppApiListGet(options?: AxiosRequestConfig): Promise> { return SysCommonApiFp(configuration).apiSysCommonAppApiListGet(options).then((request) => request(axios, basePath)); }, /** * * @summary 下载标记错误的临时 Excel(全局) 🔖 * @param {string} [fileName] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async apiSysCommonDownloadErrorExcelTempPost(fileName?: string, options?: AxiosRequestConfig): Promise> { return SysCommonApiFp(configuration).apiSysCommonDownloadErrorExcelTempPost(fileName, options).then((request) => request(axios, basePath)); }, /** * * @summary 获取MD5加密字符串 🏆 * @param {string} text * @param {boolean} uppercase * @param {*} [options] Override http request option. * @throws {RequiredError} */ async apiSysCommonMD5EncryptTextUppercaseGet(text: string, uppercase: boolean, options?: AxiosRequestConfig): Promise> { return SysCommonApiFp(configuration).apiSysCommonMD5EncryptTextUppercaseGet(text, uppercase, options).then((request) => request(axios, basePath)); }, /** * * @summary 获取机器序列号 🔖 * @param {*} [options] Override http request option. * @throws {RequiredError} */ async apiSysCommonMachineSerialKeyGet(options?: AxiosRequestConfig): Promise> { return SysCommonApiFp(configuration).apiSysCommonMachineSerialKeyGet(options).then((request) => request(axios, basePath)); }, /** * * @summary 获取国密公钥私钥对 🏆 * @param {*} [options] Override http request option. * @throws {RequiredError} */ async apiSysCommonSmKeyPairGet(options?: AxiosRequestConfig): Promise> { return SysCommonApiFp(configuration).apiSysCommonSmKeyPairGet(options).then((request) => request(axios, basePath)); }, }; }; /** * SysCommonApi - object-oriented interface * @export * @class SysCommonApi * @extends {BaseAPI} */ export class SysCommonApi extends BaseAPI { /** * * @summary 获取所有接口/动态API 🔖 * @param {string} [groupName] * @param {boolean} [isAppApi] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SysCommonApi */ public async apiSysCommonApiListGet(groupName?: string, isAppApi?: boolean, options?: AxiosRequestConfig) : Promise> { return SysCommonApiFp(this.configuration).apiSysCommonApiListGet(groupName, isAppApi, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary 获取所有移动端接口 * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SysCommonApi */ public async apiSysCommonAppApiListGet(options?: AxiosRequestConfig) : Promise> { return SysCommonApiFp(this.configuration).apiSysCommonAppApiListGet(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary 下载标记错误的临时 Excel(全局) 🔖 * @param {string} [fileName] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SysCommonApi */ public async apiSysCommonDownloadErrorExcelTempPost(fileName?: string, options?: AxiosRequestConfig) : Promise> { return SysCommonApiFp(this.configuration).apiSysCommonDownloadErrorExcelTempPost(fileName, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary 获取MD5加密字符串 🏆 * @param {string} text * @param {boolean} uppercase * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SysCommonApi */ public async apiSysCommonMD5EncryptTextUppercaseGet(text: string, uppercase: boolean, options?: AxiosRequestConfig) : Promise> { return SysCommonApiFp(this.configuration).apiSysCommonMD5EncryptTextUppercaseGet(text, uppercase, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary 获取机器序列号 🔖 * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SysCommonApi */ public async apiSysCommonMachineSerialKeyGet(options?: AxiosRequestConfig) : Promise> { return SysCommonApiFp(this.configuration).apiSysCommonMachineSerialKeyGet(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary 获取国密公钥私钥对 🏆 * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SysCommonApi */ public async apiSysCommonSmKeyPairGet(options?: AxiosRequestConfig) : Promise> { return SysCommonApiFp(this.configuration).apiSysCommonSmKeyPairGet(options).then((request) => request(this.axios, this.basePath)); } }