532 lines
26 KiB
TypeScript
532 lines
26 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* OpenAPI definition
|
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
*
|
|
* OpenAPI spec version: v0
|
|
*
|
|
*
|
|
* 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 { AttachAttachIDBody } from '../models';
|
|
import { ResponseVOAttachInfoResponseVO } from '../models';
|
|
import { ResponseVOLong } from '../models';
|
|
import { ResponseVOPageableVOAttachInfoResponseVO } from '../models';
|
|
import { ResponseVOVoid } from '../models';
|
|
import { V1AttachBody } from '../models';
|
|
/**
|
|
* AttachControllerApi - axios parameter creator
|
|
* @export
|
|
*/
|
|
export const AttachControllerApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
return {
|
|
/**
|
|
*
|
|
* @summary 新建附件
|
|
* @param {V1AttachBody} [body]
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
createAttach: async (body?: V1AttachBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
const localVarPath = `/api/v1/attach/`;
|
|
// 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;
|
|
|
|
localVarHeaderParameter['Content-Type'] = 'application/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 {number} attachID
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
deleteAttach: async (attachID: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
// verify required parameter 'attachID' is not null or undefined
|
|
if (attachID === null || attachID === undefined) {
|
|
throw new RequiredError('attachID','Required parameter attachID was null or undefined when calling deleteAttach.');
|
|
}
|
|
const localVarPath = `/api/v1/attach/{attachID}/`
|
|
.replace(`{${"attachID"}}`, encodeURIComponent(String(attachID)));
|
|
// 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: 'DELETE', ...baseOptions, ...options};
|
|
const localVarHeaderParameter = {} as any;
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
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 {number} attachID
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
getAttachContent: async (attachID: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
// verify required parameter 'attachID' is not null or undefined
|
|
if (attachID === null || attachID === undefined) {
|
|
throw new RequiredError('attachID','Required parameter attachID was null or undefined when calling getAttachContent.');
|
|
}
|
|
const localVarPath = `/api/v1/attach/{attachID}/content`
|
|
.replace(`{${"attachID"}}`, encodeURIComponent(String(attachID)));
|
|
// 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;
|
|
|
|
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 {number} attachID
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
getAttachInfo: async (attachID: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
// verify required parameter 'attachID' is not null or undefined
|
|
if (attachID === null || attachID === undefined) {
|
|
throw new RequiredError('attachID','Required parameter attachID was null or undefined when calling getAttachInfo.');
|
|
}
|
|
const localVarPath = `/api/v1/attach/{attachID}/`
|
|
.replace(`{${"attachID"}}`, encodeURIComponent(String(attachID)));
|
|
// 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;
|
|
|
|
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 {number} page 页码
|
|
* @param {number} size 大小
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
getAttachList: async (page: number, size: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
// verify required parameter 'page' is not null or undefined
|
|
if (page === null || page === undefined) {
|
|
throw new RequiredError('page','Required parameter page was null or undefined when calling getAttachList.');
|
|
}
|
|
// verify required parameter 'size' is not null or undefined
|
|
if (size === null || size === undefined) {
|
|
throw new RequiredError('size','Required parameter size was null or undefined when calling getAttachList.');
|
|
}
|
|
const localVarPath = `/api/v1/attach/`;
|
|
// 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;
|
|
|
|
if (page !== undefined) {
|
|
localVarQueryParameter['page'] = page;
|
|
}
|
|
|
|
if (size !== undefined) {
|
|
localVarQueryParameter['size'] = size;
|
|
}
|
|
|
|
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 {number} attachID
|
|
* @param {AttachAttachIDBody} [body]
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
updateAttach: async (attachID: number, body?: AttachAttachIDBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
// verify required parameter 'attachID' is not null or undefined
|
|
if (attachID === null || attachID === undefined) {
|
|
throw new RequiredError('attachID','Required parameter attachID was null or undefined when calling updateAttach.');
|
|
}
|
|
const localVarPath = `/api/v1/attach/{attachID}/`
|
|
.replace(`{${"attachID"}}`, encodeURIComponent(String(attachID)));
|
|
// 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: 'PUT', ...baseOptions, ...options};
|
|
const localVarHeaderParameter = {} as any;
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
localVarHeaderParameter['Content-Type'] = 'application/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,
|
|
};
|
|
},
|
|
}
|
|
};
|
|
|
|
/**
|
|
* AttachControllerApi - functional programming interface
|
|
* @export
|
|
*/
|
|
export const AttachControllerApiFp = function(configuration?: Configuration) {
|
|
return {
|
|
/**
|
|
*
|
|
* @summary 新建附件
|
|
* @param {V1AttachBody} [body]
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
async createAttach(body?: V1AttachBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOLong>>> {
|
|
const localVarAxiosArgs = await AttachControllerApiAxiosParamCreator(configuration).createAttach(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 {number} attachID
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
async deleteAttach(attachID: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOVoid>>> {
|
|
const localVarAxiosArgs = await AttachControllerApiAxiosParamCreator(configuration).deleteAttach(attachID, options);
|
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
return axios.request(axiosRequestArgs);
|
|
};
|
|
},
|
|
/**
|
|
*
|
|
* @summary 获取附件内容
|
|
* @param {number} attachID
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
async getAttachContent(attachID: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Blob>>> {
|
|
const localVarAxiosArgs = await AttachControllerApiAxiosParamCreator(configuration).getAttachContent(attachID, options);
|
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
return axios.request(axiosRequestArgs);
|
|
};
|
|
},
|
|
/**
|
|
*
|
|
* @summary 获取附件信息
|
|
* @param {number} attachID
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
async getAttachInfo(attachID: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOAttachInfoResponseVO>>> {
|
|
const localVarAxiosArgs = await AttachControllerApiAxiosParamCreator(configuration).getAttachInfo(attachID, options);
|
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
return axios.request(axiosRequestArgs);
|
|
};
|
|
},
|
|
/**
|
|
*
|
|
* @summary 获取附件列表
|
|
* @param {number} page 页码
|
|
* @param {number} size 大小
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
async getAttachList(page: number, size: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOPageableVOAttachInfoResponseVO>>> {
|
|
const localVarAxiosArgs = await AttachControllerApiAxiosParamCreator(configuration).getAttachList(page, size, options);
|
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
return axios.request(axiosRequestArgs);
|
|
};
|
|
},
|
|
/**
|
|
*
|
|
* @summary 更新附件
|
|
* @param {number} attachID
|
|
* @param {AttachAttachIDBody} [body]
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
async updateAttach(attachID: number, body?: AttachAttachIDBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOVoid>>> {
|
|
const localVarAxiosArgs = await AttachControllerApiAxiosParamCreator(configuration).updateAttach(attachID, body, options);
|
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
return axios.request(axiosRequestArgs);
|
|
};
|
|
},
|
|
}
|
|
};
|
|
|
|
/**
|
|
* AttachControllerApi - factory interface
|
|
* @export
|
|
*/
|
|
export const AttachControllerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
return {
|
|
/**
|
|
*
|
|
* @summary 新建附件
|
|
* @param {V1AttachBody} [body]
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
async createAttach(body?: V1AttachBody, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOLong>> {
|
|
return AttachControllerApiFp(configuration).createAttach(body, options).then((request) => request(axios, basePath));
|
|
},
|
|
/**
|
|
*
|
|
* @summary 删除附件
|
|
* @param {number} attachID
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
async deleteAttach(attachID: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOVoid>> {
|
|
return AttachControllerApiFp(configuration).deleteAttach(attachID, options).then((request) => request(axios, basePath));
|
|
},
|
|
/**
|
|
*
|
|
* @summary 获取附件内容
|
|
* @param {number} attachID
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
async getAttachContent(attachID: number, options?: AxiosRequestConfig): Promise<AxiosResponse<Blob>> {
|
|
return AttachControllerApiFp(configuration).getAttachContent(attachID, options).then((request) => request(axios, basePath));
|
|
},
|
|
/**
|
|
*
|
|
* @summary 获取附件信息
|
|
* @param {number} attachID
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
async getAttachInfo(attachID: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOAttachInfoResponseVO>> {
|
|
return AttachControllerApiFp(configuration).getAttachInfo(attachID, options).then((request) => request(axios, basePath));
|
|
},
|
|
/**
|
|
*
|
|
* @summary 获取附件列表
|
|
* @param {number} page 页码
|
|
* @param {number} size 大小
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
async getAttachList(page: number, size: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOPageableVOAttachInfoResponseVO>> {
|
|
return AttachControllerApiFp(configuration).getAttachList(page, size, options).then((request) => request(axios, basePath));
|
|
},
|
|
/**
|
|
*
|
|
* @summary 更新附件
|
|
* @param {number} attachID
|
|
* @param {AttachAttachIDBody} [body]
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
async updateAttach(attachID: number, body?: AttachAttachIDBody, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOVoid>> {
|
|
return AttachControllerApiFp(configuration).updateAttach(attachID, body, options).then((request) => request(axios, basePath));
|
|
},
|
|
};
|
|
};
|
|
|
|
/**
|
|
* AttachControllerApi - object-oriented interface
|
|
* @export
|
|
* @class AttachControllerApi
|
|
* @extends {BaseAPI}
|
|
*/
|
|
export class AttachControllerApi extends BaseAPI {
|
|
/**
|
|
*
|
|
* @summary 新建附件
|
|
* @param {V1AttachBody} [body]
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
* @memberof AttachControllerApi
|
|
*/
|
|
public async createAttach(body?: V1AttachBody, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOLong>> {
|
|
return AttachControllerApiFp(this.configuration).createAttach(body, options).then((request) => request(this.axios, this.basePath));
|
|
}
|
|
/**
|
|
*
|
|
* @summary 删除附件
|
|
* @param {number} attachID
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
* @memberof AttachControllerApi
|
|
*/
|
|
public async deleteAttach(attachID: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOVoid>> {
|
|
return AttachControllerApiFp(this.configuration).deleteAttach(attachID, options).then((request) => request(this.axios, this.basePath));
|
|
}
|
|
/**
|
|
*
|
|
* @summary 获取附件内容
|
|
* @param {number} attachID
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
* @memberof AttachControllerApi
|
|
*/
|
|
public async getAttachContent(attachID: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<Blob>> {
|
|
return AttachControllerApiFp(this.configuration).getAttachContent(attachID, options).then((request) => request(this.axios, this.basePath));
|
|
}
|
|
/**
|
|
*
|
|
* @summary 获取附件信息
|
|
* @param {number} attachID
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
* @memberof AttachControllerApi
|
|
*/
|
|
public async getAttachInfo(attachID: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOAttachInfoResponseVO>> {
|
|
return AttachControllerApiFp(this.configuration).getAttachInfo(attachID, options).then((request) => request(this.axios, this.basePath));
|
|
}
|
|
/**
|
|
*
|
|
* @summary 获取附件列表
|
|
* @param {number} page 页码
|
|
* @param {number} size 大小
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
* @memberof AttachControllerApi
|
|
*/
|
|
public async getAttachList(page: number, size: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOPageableVOAttachInfoResponseVO>> {
|
|
return AttachControllerApiFp(this.configuration).getAttachList(page, size, options).then((request) => request(this.axios, this.basePath));
|
|
}
|
|
/**
|
|
*
|
|
* @summary 更新附件
|
|
* @param {number} attachID
|
|
* @param {AttachAttachIDBody} [body]
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
* @memberof AttachControllerApi
|
|
*/
|
|
public async updateAttach(attachID: number, body?: AttachAttachIDBody, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOVoid>> {
|
|
return AttachControllerApiFp(this.configuration).updateAttach(attachID, body, options).then((request) => request(this.axios, this.basePath));
|
|
}
|
|
}
|