更新 API
This commit is contained in:
parent
56aff9312d
commit
76b399dd2d
@ -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<RequestArgs> => {
|
||||
librariesPost: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// 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<ModelLibrary>> {
|
||||
async librariesPost(name: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ModelLibrary>> {
|
||||
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<ModelLibrary> {
|
||||
librariesPost(name: string, options?: any): AxiosPromise<ModelLibrary> {
|
||||
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));
|
||||
}
|
||||
|
||||
|
@ -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(/\/+$/, "");
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user