diff --git a/src/openapi/api.ts b/src/openapi/api.ts index 40c6c9b..a4dde0a 100644 --- a/src/openapi/api.ts +++ b/src/openapi/api.ts @@ -1,7 +1,7 @@ /* tslint:disable */ /* eslint-disable */ /** - * Leaf Document + * Swagger Example API * This is a sample server celler server. * * The version of the OpenAPI document: 1.0 @@ -810,11 +810,11 @@ export const LibrariesApiAxiosParamCreator = function (configuration?: Configura /** * * @summary 新建资料库 - * @param {number} name 资料库名称 + * @param {string} name 资料库名称 * @param {*} [options] Override http request option. * @throws {RequiredError} */ - librariesPost: async (name: number, options: AxiosRequestConfig = {}): Promise => { + librariesPost: async (name: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'name' is not null or undefined assertParamExists('librariesPost', 'name', name) const localVarPath = `/libraries`; @@ -947,11 +947,11 @@ export const LibrariesApiFp = function(configuration?: Configuration) { /** * * @summary 新建资料库 - * @param {number} name 资料库名称 + * @param {string} name 资料库名称 * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async librariesPost(name: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async librariesPost(name: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.librariesPost(name, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['LibrariesApi.librariesPost']?.[index]?.url; @@ -1006,11 +1006,11 @@ export const LibrariesApiFactory = function (configuration?: Configuration, base /** * * @summary 新建资料库 - * @param {number} name 资料库名称 + * @param {string} name 资料库名称 * @param {*} [options] Override http request option. * @throws {RequiredError} */ - librariesPost(name: number, options?: any): AxiosPromise { + librariesPost(name: string, options?: any): AxiosPromise { return localVarFp.librariesPost(name, options).then((request) => request(axios, basePath)); }, /** @@ -1058,12 +1058,12 @@ export class LibrariesApi extends BaseAPI { /** * * @summary 新建资料库 - * @param {number} name 资料库名称 + * @param {string} name 资料库名称 * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LibrariesApi */ - public librariesPost(name: number, options?: AxiosRequestConfig) { + public librariesPost(name: string, options?: AxiosRequestConfig) { return LibrariesApiFp(this.configuration).librariesPost(name, options).then((request) => request(this.axios, this.basePath)); } diff --git a/src/openapi/base.ts b/src/openapi/base.ts index ef801df..c23cc89 100644 --- a/src/openapi/base.ts +++ b/src/openapi/base.ts @@ -1,7 +1,7 @@ /* tslint:disable */ /* eslint-disable */ /** - * Leaf Document + * Swagger Example API * This is a sample server celler server. * * The version of the OpenAPI document: 1.0 @@ -19,7 +19,7 @@ import type { Configuration } from './configuration'; import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; -export const BASE_PATH = "/api".replace(/\/+$/, ""); +export const BASE_PATH = "http://localhost".replace(/\/+$/, ""); /** * diff --git a/src/openapi/common.ts b/src/openapi/common.ts index c02cedc..e1f18c8 100644 --- a/src/openapi/common.ts +++ b/src/openapi/common.ts @@ -1,7 +1,7 @@ /* tslint:disable */ /* eslint-disable */ /** - * Leaf Document + * Swagger Example API * This is a sample server celler server. * * The version of the OpenAPI document: 1.0 diff --git a/src/openapi/configuration.ts b/src/openapi/configuration.ts index f7c1cb6..2a2332d 100644 --- a/src/openapi/configuration.ts +++ b/src/openapi/configuration.ts @@ -1,7 +1,7 @@ /* tslint:disable */ /* eslint-disable */ /** - * Leaf Document + * Swagger Example API * This is a sample server celler server. * * The version of the OpenAPI document: 1.0 diff --git a/src/openapi/index.ts b/src/openapi/index.ts index 03fcf9c..457ac3a 100644 --- a/src/openapi/index.ts +++ b/src/openapi/index.ts @@ -1,7 +1,7 @@ /* tslint:disable */ /* eslint-disable */ /** - * Leaf Document + * Swagger Example API * This is a sample server celler server. * * The version of the OpenAPI document: 1.0