| | |
| | | }, |
| | | /** |
| | | * |
| | | * @summary 保存上下游系统信息 🔖 |
| | | * @param {InfoSaveInput} [body] |
| | | * @param {*} [options] Override http request option. |
| | | * @throws {RequiredError} |
| | | */ |
| | | apiSysConfigSaveSystemInfoPost: async (body?: InfoSaveInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
| | | const localVarPath = `/api/sysConfig/saveSystemInfo`; |
| | | // 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 {*} [options] Override http request option. |
| | | * @throws {RequiredError} |
| | | */ |
| | | apiSysConfigSysInfoGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
| | | const localVarPath = `/api/sysConfig/sysInfo`; |
| | | // 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} |
| | | */ |
| | | apiSysConfigSystemInfoGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
| | | const localVarPath = `/api/sysConfig/systemInfo`; |
| | | // use dummy base URL string because the URL constructor only accepts absolute URLs. |
| | | const localVarUrlObj = new URL(localVarPath, 'https://example.com'); |
| | | let baseOptions; |
| | |
| | | }, |
| | | /** |
| | | * |
| | | * @summary 保存系统信息 🔖 |
| | | * @param {InfoSaveInput} [body] |
| | | * @param {*} [options] Override http request option. |
| | | * @throws {RequiredError} |
| | | */ |
| | | async apiSysConfigSaveSystemInfoPost(body?: InfoSaveInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> { |
| | | const localVarAxiosArgs = await SysConfigApiAxiosParamCreator(configuration).apiSysConfigSaveSystemInfoPost(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 {*} [options] Override http request option. |
| | | * @throws {RequiredError} |
| | | */ |
| | | async apiSysConfigSysInfoGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultObject>>> { |
| | | const localVarAxiosArgs = await SysConfigApiAxiosParamCreator(configuration).apiSysConfigSysInfoGet(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 apiSysConfigSystemInfoGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultObject>>> { |
| | | const localVarAxiosArgs = await SysConfigApiAxiosParamCreator(configuration).apiSysConfigSystemInfoGet(options); |
| | | return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { |
| | | const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; |
| | | return axios.request(axiosRequestArgs); |
| | |
| | | }, |
| | | /** |
| | | * |
| | | * @summary 保存系统信息 🔖 |
| | | * @param {InfoSaveInput} [body] |
| | | * @param {*} [options] Override http request option. |
| | | * @throws {RequiredError} |
| | | */ |
| | | async apiSysConfigSaveSystemInfoPost(body?: InfoSaveInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> { |
| | | return SysConfigApiFp(configuration).apiSysConfigSaveSystemInfoPost(body, options).then((request) => request(axios, basePath)); |
| | | }, |
| | | /** |
| | | * |
| | | * @summary 获取系统信息 🔖 |
| | | * @param {*} [options] Override http request option. |
| | | * @throws {RequiredError} |
| | | */ |
| | | async apiSysConfigSysInfoGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultObject>> { |
| | | return SysConfigApiFp(configuration).apiSysConfigSysInfoGet(options).then((request) => request(axios, basePath)); |
| | | }, |
| | | /** |
| | | * |
| | | * @summary 获取系统信息 🔖 |
| | | * @param {*} [options] Override http request option. |
| | | * @throws {RequiredError} |
| | | */ |
| | | async apiSysConfigSystemInfoGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultObject>> { |
| | | return SysConfigApiFp(configuration).apiSysConfigSystemInfoGet(options).then((request) => request(axios, basePath)); |
| | | }, |
| | | /** |
| | | * |
| | |
| | | public async apiSysConfigSaveSysInfoPost(body?: InfoSaveInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> { |
| | | return SysConfigApiFp(this.configuration).apiSysConfigSaveSysInfoPost(body, options).then((request) => request(this.axios, this.basePath)); |
| | | } |
| | | /** |
| | | * |
| | | * @summary 保存系统信息 🔖 |
| | | * @param {InfoSaveInput} [body] |
| | | * @param {*} [options] Override http request option. |
| | | * @throws {RequiredError} |
| | | * @memberof SysConfigApi |
| | | */ |
| | | public async apiSysConfigSaveSystemInfoPost(body?: InfoSaveInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> { |
| | | return SysConfigApiFp(this.configuration).apiSysConfigSaveSystemInfoPost(body, options).then((request) => request(this.axios, this.basePath)); |
| | | } |
| | | /** |
| | | * |
| | | * @summary 获取系统信息 🔖 |
| | |
| | | public async apiSysConfigSysInfoGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultObject>> { |
| | | return SysConfigApiFp(this.configuration).apiSysConfigSysInfoGet(options).then((request) => request(this.axios, this.basePath)); |
| | | } |
| | | /** |
| | | * |
| | | * @summary 获取系统信息 🔖 |
| | | * @param {*} [options] Override http request option. |
| | | * @throws {RequiredError} |
| | | * @memberof SysConfigApi |
| | | */ |
| | | public async apiSysConfigSystemInfoGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultObject>> { |
| | | return SysConfigApiFp(this.configuration).apiSysConfigSystemInfoGet(options).then((request) => request(this.axios, this.basePath)); |
| | | } |
| | | /** |
| | | * |
| | | * @summary 更新参数配置 🔖 |