mirror of
https://github.com/shuguangnet/Code-Master.git
synced 2025-01-24 00:18:44 +08:00
43 lines
1.1 KiB
TypeScript
43 lines
1.1 KiB
TypeScript
/* generated using openapi-typescript-codegen -- do no edit */
|
|
/* istanbul ignore file */
|
|
/* tslint:disable */
|
|
/* eslint-disable */
|
|
import type { BaseResponse_string_ } from '../models/BaseResponse_string_';
|
|
|
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
import { OpenAPI } from '../core/OpenAPI';
|
|
import { request as __request } from '../core/request';
|
|
|
|
export class FileControllerService {
|
|
|
|
/**
|
|
* uploadFile
|
|
* @param biz
|
|
* @param file
|
|
* @returns BaseResponse_string_ OK
|
|
* @returns any Created
|
|
* @throws ApiError
|
|
*/
|
|
public static uploadFileUsingPost(
|
|
biz?: string,
|
|
file?: Blob,
|
|
): CancelablePromise<BaseResponse_string_ | any> {
|
|
return __request(OpenAPI, {
|
|
method: 'POST',
|
|
url: '/api/file/upload',
|
|
query: {
|
|
'biz': biz,
|
|
},
|
|
formData: {
|
|
'file': file,
|
|
},
|
|
errors: {
|
|
401: `Unauthorized`,
|
|
403: `Forbidden`,
|
|
404: `Not Found`,
|
|
},
|
|
});
|
|
}
|
|
|
|
}
|