1585 lines
78 KiB
TypeScript
1585 lines
78 KiB
TypeScript
/* tslint:disable */
|
||
/* eslint-disable */
|
||
/**
|
||
* Admin.NET 通用权限开发平台
|
||
* 让 .NET 开发更简单、更通用、更流行。整合最新技术,模块插件式开发,前后端分离,开箱即用。<br/><u><b><font color='FF0000'> 👮不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!</font></b></u>
|
||
*
|
||
* OpenAPI spec version: 1.0.0
|
||
*
|
||
*
|
||
* 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 { AdminNETResultIActionResult } from '../models';
|
||
import { AdminNETResultListSysFile } from '../models';
|
||
import { AdminNETResultListTreeNode } from '../models';
|
||
import { AdminNETResultSqlSugarPagedListSysFile } from '../models';
|
||
import { AdminNETResultString } from '../models';
|
||
import { AdminNETResultSysFile } from '../models';
|
||
import { BaseIdInput } from '../models';
|
||
import { PageFileInput } from '../models';
|
||
import { SysFile } from '../models';
|
||
import { UploadFileFromBase64Input } from '../models';
|
||
/**
|
||
* SysFileApi - axios parameter creator
|
||
* @export
|
||
*/
|
||
export const SysFileApiAxiosParamCreator = function (configuration?: Configuration) {
|
||
return {
|
||
/**
|
||
*
|
||
* @summary 删除文件 🔖
|
||
* @param {BaseIdInput} [body]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
apiSysFileDeletePost: async (body?: BaseIdInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||
const localVarPath = `/api/sysFile/delete`;
|
||
// 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 根据文件Id或Url下载 🔖
|
||
* @param {SysFile} [body]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
apiSysFileDownloadFilePost: async (body?: SysFile, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||
const localVarPath = `/api/sysFile/downloadFile`;
|
||
// 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 下载指定文件Base64格式 🔖
|
||
* @param {number} [id]
|
||
* @param {string} [url]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
apiSysFileFileBase64Get: async (id?: number, url?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||
const localVarPath = `/api/sysFile/fileBase64`;
|
||
// 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;
|
||
}
|
||
|
||
if (id !== undefined) {
|
||
localVarQueryParameter['id'] = id;
|
||
}
|
||
|
||
if (url !== undefined) {
|
||
localVarQueryParameter['url'] = url;
|
||
}
|
||
|
||
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 根据文件Id集合获取文件 🔖
|
||
* @param {Array<number>} [ids]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
apiSysFileFileByIdsGet: async (ids?: Array<number>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||
const localVarPath = `/api/sysFile/fileByIds`;
|
||
// 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;
|
||
}
|
||
|
||
if (ids) {
|
||
localVarQueryParameter['ids'] = ids;
|
||
}
|
||
|
||
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} [id]
|
||
* @param {boolean} [isClearFilter]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
apiSysFileFileGet: async (id?: number, isClearFilter?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||
const localVarPath = `/api/sysFile/file`;
|
||
// 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;
|
||
}
|
||
|
||
if (id !== undefined) {
|
||
localVarQueryParameter['id'] = id;
|
||
}
|
||
|
||
if (isClearFilter !== undefined) {
|
||
localVarQueryParameter['isClearFilter'] = isClearFilter;
|
||
}
|
||
|
||
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}
|
||
*/
|
||
apiSysFileFolderGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||
const localVarPath = `/api/sysFile/folder`;
|
||
// 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 {PageFileInput} [body]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
apiSysFilePagePost: async (body?: PageFileInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||
const localVarPath = `/api/sysFile/page`;
|
||
// 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 {number} id
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
apiSysFilePreviewIdGet: async (id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||
// verify required parameter 'id' is not null or undefined
|
||
if (id === null || id === undefined) {
|
||
throw new RequiredError('id','Required parameter id was null or undefined when calling apiSysFilePreviewIdGet.');
|
||
}
|
||
const localVarPath = `/api/sysFile/preview/{id}`
|
||
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
||
// 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 {SysFile} [body]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
apiSysFileUpdatePost: async (body?: SysFile, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||
const localVarPath = `/api/sysFile/update`;
|
||
// 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 {Blob} [file]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
apiSysFileUploadAvatarPostForm: async (file?: Blob, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||
const localVarPath = `/api/sysFile/uploadAvatar`;
|
||
// 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;
|
||
const localVarFormParams = new FormData();
|
||
|
||
// 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;
|
||
}
|
||
|
||
|
||
if (file !== undefined) {
|
||
localVarFormParams.append('file', file as any);
|
||
}
|
||
|
||
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
||
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};
|
||
localVarRequestOptions.data = localVarFormParams;
|
||
|
||
return {
|
||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||
options: localVarRequestOptions,
|
||
};
|
||
},
|
||
/**
|
||
*
|
||
* @summary 上传轮播图 🔖
|
||
* @param {number} tenantId
|
||
* @param {Array<Blob>} [files]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
apiSysFileUploadCarouselTenantIdPostForm: async (tenantId: number, files?: Array<Blob>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||
// verify required parameter 'tenantId' is not null or undefined
|
||
if (tenantId === null || tenantId === undefined) {
|
||
throw new RequiredError('tenantId','Required parameter tenantId was null or undefined when calling apiSysFileUploadCarouselTenantIdPostForm.');
|
||
}
|
||
const localVarPath = `/api/sysFile/uploadCarousel/{tenantId}`
|
||
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)));
|
||
// 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;
|
||
const localVarFormParams = new FormData();
|
||
|
||
// 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;
|
||
}
|
||
|
||
if (files) {
|
||
files.forEach((element) => {
|
||
localVarFormParams.append('files', element as any);
|
||
})
|
||
}
|
||
|
||
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
||
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};
|
||
localVarRequestOptions.data = localVarFormParams;
|
||
|
||
return {
|
||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||
options: localVarRequestOptions,
|
||
};
|
||
},
|
||
/**
|
||
*
|
||
* @summary 上传文件Base64 🔖
|
||
* @param {UploadFileFromBase64Input} [body]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
apiSysFileUploadFileFromBase64Post: async (body?: UploadFileFromBase64Input, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||
const localVarPath = `/api/sysFile/uploadFileFromBase64`;
|
||
// 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 {Blob} [file]
|
||
* @param {string} [fileType]
|
||
* @param {string} [fileAlias]
|
||
* @param {boolean} [isPublic]
|
||
* @param {string} [allowSuffix]
|
||
* @param {number} [dataId]
|
||
* @param {number} [userId]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
apiSysFileUploadFilePostForm: async (file?: Blob, fileType?: string, fileAlias?: string, isPublic?: boolean, allowSuffix?: string, dataId?: number, userId?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||
const localVarPath = `/api/sysFile/uploadFile`;
|
||
// 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;
|
||
const localVarFormParams = new FormData();
|
||
|
||
// 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;
|
||
}
|
||
|
||
|
||
if (file !== undefined) {
|
||
localVarFormParams.append('File', file as any);
|
||
}
|
||
|
||
if (fileType !== undefined) {
|
||
localVarFormParams.append('FileType', fileType as any);
|
||
}
|
||
|
||
if (fileAlias !== undefined) {
|
||
localVarFormParams.append('FileAlias', fileAlias as any);
|
||
}
|
||
|
||
if (isPublic !== undefined) {
|
||
localVarFormParams.append('IsPublic', isPublic as any);
|
||
}
|
||
|
||
if (allowSuffix !== undefined) {
|
||
localVarFormParams.append('AllowSuffix', allowSuffix as any);
|
||
}
|
||
|
||
if (dataId !== undefined) {
|
||
localVarFormParams.append('DataId', dataId as any);
|
||
}
|
||
|
||
if (userId !== undefined) {
|
||
localVarFormParams.append('UserId', userId as any);
|
||
}
|
||
|
||
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
||
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};
|
||
localVarRequestOptions.data = localVarFormParams;
|
||
|
||
return {
|
||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||
options: localVarRequestOptions,
|
||
};
|
||
},
|
||
/**
|
||
*
|
||
* @summary 上传多文件 🔖
|
||
* @param {Array<Blob>} [files]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
apiSysFileUploadFilesPostForm: async (files?: Array<Blob>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||
const localVarPath = `/api/sysFile/uploadFiles`;
|
||
// 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;
|
||
const localVarFormParams = new FormData();
|
||
|
||
// 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;
|
||
}
|
||
|
||
if (files) {
|
||
files.forEach((element) => {
|
||
localVarFormParams.append('files', element as any);
|
||
})
|
||
}
|
||
|
||
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
||
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};
|
||
localVarRequestOptions.data = localVarFormParams;
|
||
|
||
return {
|
||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||
options: localVarRequestOptions,
|
||
};
|
||
},
|
||
/**
|
||
*
|
||
* @summary 上传Logo 🔖
|
||
* @param {number} tenantId
|
||
* @param {Blob} [file]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
apiSysFileUploadLogoTenantIdPostForm: async (tenantId: number, file?: Blob, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||
// verify required parameter 'tenantId' is not null or undefined
|
||
if (tenantId === null || tenantId === undefined) {
|
||
throw new RequiredError('tenantId','Required parameter tenantId was null or undefined when calling apiSysFileUploadLogoTenantIdPostForm.');
|
||
}
|
||
const localVarPath = `/api/sysFile/uploadLogo/{tenantId}`
|
||
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)));
|
||
// 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;
|
||
const localVarFormParams = new FormData();
|
||
|
||
// 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;
|
||
}
|
||
|
||
|
||
if (file !== undefined) {
|
||
localVarFormParams.append('file', file as any);
|
||
}
|
||
|
||
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
||
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};
|
||
localVarRequestOptions.data = localVarFormParams;
|
||
|
||
return {
|
||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||
options: localVarRequestOptions,
|
||
};
|
||
},
|
||
/**
|
||
*
|
||
* @summary 上传电子签名 🔖
|
||
* @param {Blob} [file]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
apiSysFileUploadSignaturePostForm: async (file?: Blob, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||
const localVarPath = `/api/sysFile/uploadSignature`;
|
||
// 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;
|
||
const localVarFormParams = new FormData();
|
||
|
||
// 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;
|
||
}
|
||
|
||
|
||
if (file !== undefined) {
|
||
localVarFormParams.append('file', file as any);
|
||
}
|
||
|
||
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
||
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};
|
||
localVarRequestOptions.data = localVarFormParams;
|
||
|
||
return {
|
||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||
options: localVarRequestOptions,
|
||
};
|
||
},
|
||
/**
|
||
*
|
||
* @summary 根据文件Id和MD5下载(与db存储模式路径对应) 🔖
|
||
* @param {number} [id]
|
||
* @param {string} [fileMd5]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
uploadDownloadfileGet: async (id?: number, fileMd5?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||
const localVarPath = `/upload/downloadfile`;
|
||
// 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;
|
||
}
|
||
|
||
if (id !== undefined) {
|
||
localVarQueryParameter['id'] = id;
|
||
}
|
||
|
||
if (fileMd5 !== undefined) {
|
||
localVarQueryParameter['fileMd5'] = fileMd5;
|
||
}
|
||
|
||
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,
|
||
};
|
||
},
|
||
}
|
||
};
|
||
|
||
/**
|
||
* SysFileApi - functional programming interface
|
||
* @export
|
||
*/
|
||
export const SysFileApiFp = function(configuration?: Configuration) {
|
||
return {
|
||
/**
|
||
*
|
||
* @summary 删除文件 🔖
|
||
* @param {BaseIdInput} [body]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileDeletePost(body?: BaseIdInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
|
||
const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileDeletePost(body, options);
|
||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||
return axios.request(axiosRequestArgs);
|
||
};
|
||
},
|
||
/**
|
||
*
|
||
* @summary 根据文件Id或Url下载 🔖
|
||
* @param {SysFile} [body]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileDownloadFilePost(body?: SysFile, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminNETResultIActionResult>>> {
|
||
const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileDownloadFilePost(body, options);
|
||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||
return axios.request(axiosRequestArgs);
|
||
};
|
||
},
|
||
/**
|
||
*
|
||
* @summary 下载指定文件Base64格式 🔖
|
||
* @param {number} [id]
|
||
* @param {string} [url]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileFileBase64Get(id?: number, url?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminNETResultString>>> {
|
||
const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileFileBase64Get(id, url, options);
|
||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||
return axios.request(axiosRequestArgs);
|
||
};
|
||
},
|
||
/**
|
||
*
|
||
* @summary 根据文件Id集合获取文件 🔖
|
||
* @param {Array<number>} [ids]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileFileByIdsGet(ids?: Array<number>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminNETResultListSysFile>>> {
|
||
const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileFileByIdsGet(ids, 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} [id]
|
||
* @param {boolean} [isClearFilter]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileFileGet(id?: number, isClearFilter?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminNETResultSysFile>>> {
|
||
const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileFileGet(id, isClearFilter, 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 apiSysFileFolderGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminNETResultListTreeNode>>> {
|
||
const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileFolderGet(options);
|
||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||
return axios.request(axiosRequestArgs);
|
||
};
|
||
},
|
||
/**
|
||
*
|
||
* @summary 获取文件分页列表 🔖
|
||
* @param {PageFileInput} [body]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFilePagePost(body?: PageFileInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminNETResultSqlSugarPagedListSysFile>>> {
|
||
const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFilePagePost(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} id
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFilePreviewIdGet(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminNETResultIActionResult>>> {
|
||
const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFilePreviewIdGet(id, options);
|
||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||
return axios.request(axiosRequestArgs);
|
||
};
|
||
},
|
||
/**
|
||
*
|
||
* @summary 更新文件 🔖
|
||
* @param {SysFile} [body]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileUpdatePost(body?: SysFile, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
|
||
const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileUpdatePost(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 {Blob} [file]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileUploadAvatarPostForm(file?: Blob, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminNETResultSysFile>>> {
|
||
const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileUploadAvatarPostForm(file, 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} tenantId
|
||
* @param {Array<Blob>} [files]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileUploadCarouselTenantIdPostForm(tenantId: number, files?: Array<Blob>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminNETResultListSysFile>>> {
|
||
const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileUploadCarouselTenantIdPostForm(tenantId, files, options);
|
||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||
return axios.request(axiosRequestArgs);
|
||
};
|
||
},
|
||
/**
|
||
*
|
||
* @summary 上传文件Base64 🔖
|
||
* @param {UploadFileFromBase64Input} [body]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileUploadFileFromBase64Post(body?: UploadFileFromBase64Input, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminNETResultSysFile>>> {
|
||
const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileUploadFileFromBase64Post(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 {Blob} [file]
|
||
* @param {string} [fileType]
|
||
* @param {string} [fileAlias]
|
||
* @param {boolean} [isPublic]
|
||
* @param {string} [allowSuffix]
|
||
* @param {number} [dataId]
|
||
* @param {number} [userId]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileUploadFilePostForm(file?: Blob, fileType?: string, fileAlias?: string, isPublic?: boolean, allowSuffix?: string, dataId?: number, userId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminNETResultSysFile>>> {
|
||
const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileUploadFilePostForm(file, fileType, fileAlias, isPublic, allowSuffix, dataId, userId, options);
|
||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||
return axios.request(axiosRequestArgs);
|
||
};
|
||
},
|
||
/**
|
||
*
|
||
* @summary 上传多文件 🔖
|
||
* @param {Array<Blob>} [files]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileUploadFilesPostForm(files?: Array<Blob>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminNETResultListSysFile>>> {
|
||
const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileUploadFilesPostForm(files, options);
|
||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||
return axios.request(axiosRequestArgs);
|
||
};
|
||
},
|
||
/**
|
||
*
|
||
* @summary 上传Logo 🔖
|
||
* @param {number} tenantId
|
||
* @param {Blob} [file]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileUploadLogoTenantIdPostForm(tenantId: number, file?: Blob, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminNETResultSysFile>>> {
|
||
const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileUploadLogoTenantIdPostForm(tenantId, file, options);
|
||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||
return axios.request(axiosRequestArgs);
|
||
};
|
||
},
|
||
/**
|
||
*
|
||
* @summary 上传电子签名 🔖
|
||
* @param {Blob} [file]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileUploadSignaturePostForm(file?: Blob, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminNETResultSysFile>>> {
|
||
const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileUploadSignaturePostForm(file, options);
|
||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||
return axios.request(axiosRequestArgs);
|
||
};
|
||
},
|
||
/**
|
||
*
|
||
* @summary 根据文件Id和MD5下载(与db存储模式路径对应) 🔖
|
||
* @param {number} [id]
|
||
* @param {string} [fileMd5]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async uploadDownloadfileGet(id?: number, fileMd5?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminNETResultIActionResult>>> {
|
||
const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).uploadDownloadfileGet(id, fileMd5, options);
|
||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||
return axios.request(axiosRequestArgs);
|
||
};
|
||
},
|
||
}
|
||
};
|
||
|
||
/**
|
||
* SysFileApi - factory interface
|
||
* @export
|
||
*/
|
||
export const SysFileApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
||
return {
|
||
/**
|
||
*
|
||
* @summary 删除文件 🔖
|
||
* @param {BaseIdInput} [body]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileDeletePost(body?: BaseIdInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
||
return SysFileApiFp(configuration).apiSysFileDeletePost(body, options).then((request) => request(axios, basePath));
|
||
},
|
||
/**
|
||
*
|
||
* @summary 根据文件Id或Url下载 🔖
|
||
* @param {SysFile} [body]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileDownloadFilePost(body?: SysFile, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminNETResultIActionResult>> {
|
||
return SysFileApiFp(configuration).apiSysFileDownloadFilePost(body, options).then((request) => request(axios, basePath));
|
||
},
|
||
/**
|
||
*
|
||
* @summary 下载指定文件Base64格式 🔖
|
||
* @param {number} [id]
|
||
* @param {string} [url]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileFileBase64Get(id?: number, url?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminNETResultString>> {
|
||
return SysFileApiFp(configuration).apiSysFileFileBase64Get(id, url, options).then((request) => request(axios, basePath));
|
||
},
|
||
/**
|
||
*
|
||
* @summary 根据文件Id集合获取文件 🔖
|
||
* @param {Array<number>} [ids]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileFileByIdsGet(ids?: Array<number>, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminNETResultListSysFile>> {
|
||
return SysFileApiFp(configuration).apiSysFileFileByIdsGet(ids, options).then((request) => request(axios, basePath));
|
||
},
|
||
/**
|
||
*
|
||
* @summary 获取文件 🔖
|
||
* @param {number} [id]
|
||
* @param {boolean} [isClearFilter]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileFileGet(id?: number, isClearFilter?: boolean, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminNETResultSysFile>> {
|
||
return SysFileApiFp(configuration).apiSysFileFileGet(id, isClearFilter, options).then((request) => request(axios, basePath));
|
||
},
|
||
/**
|
||
*
|
||
* @summary 获取文件路径 🔖
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileFolderGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminNETResultListTreeNode>> {
|
||
return SysFileApiFp(configuration).apiSysFileFolderGet(options).then((request) => request(axios, basePath));
|
||
},
|
||
/**
|
||
*
|
||
* @summary 获取文件分页列表 🔖
|
||
* @param {PageFileInput} [body]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFilePagePost(body?: PageFileInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminNETResultSqlSugarPagedListSysFile>> {
|
||
return SysFileApiFp(configuration).apiSysFilePagePost(body, options).then((request) => request(axios, basePath));
|
||
},
|
||
/**
|
||
*
|
||
* @summary 文件预览 🔖
|
||
* @param {number} id
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFilePreviewIdGet(id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminNETResultIActionResult>> {
|
||
return SysFileApiFp(configuration).apiSysFilePreviewIdGet(id, options).then((request) => request(axios, basePath));
|
||
},
|
||
/**
|
||
*
|
||
* @summary 更新文件 🔖
|
||
* @param {SysFile} [body]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileUpdatePost(body?: SysFile, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
||
return SysFileApiFp(configuration).apiSysFileUpdatePost(body, options).then((request) => request(axios, basePath));
|
||
},
|
||
/**
|
||
*
|
||
* @summary 上传头像 🔖
|
||
* @param {Blob} [file]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileUploadAvatarPostForm(file?: Blob, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminNETResultSysFile>> {
|
||
return SysFileApiFp(configuration).apiSysFileUploadAvatarPostForm(file, options).then((request) => request(axios, basePath));
|
||
},
|
||
/**
|
||
*
|
||
* @summary 上传轮播图 🔖
|
||
* @param {number} tenantId
|
||
* @param {Array<Blob>} [files]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileUploadCarouselTenantIdPostForm(tenantId: number, files?: Array<Blob>, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminNETResultListSysFile>> {
|
||
return SysFileApiFp(configuration).apiSysFileUploadCarouselTenantIdPostForm(tenantId, files, options).then((request) => request(axios, basePath));
|
||
},
|
||
/**
|
||
*
|
||
* @summary 上传文件Base64 🔖
|
||
* @param {UploadFileFromBase64Input} [body]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileUploadFileFromBase64Post(body?: UploadFileFromBase64Input, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminNETResultSysFile>> {
|
||
return SysFileApiFp(configuration).apiSysFileUploadFileFromBase64Post(body, options).then((request) => request(axios, basePath));
|
||
},
|
||
/**
|
||
*
|
||
* @summary 上传文件 🔖
|
||
* @param {Blob} [file]
|
||
* @param {string} [fileType]
|
||
* @param {string} [fileAlias]
|
||
* @param {boolean} [isPublic]
|
||
* @param {string} [allowSuffix]
|
||
* @param {number} [dataId]
|
||
* @param {number} [userId]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileUploadFilePostForm(file?: Blob, fileType?: string, fileAlias?: string, isPublic?: boolean, allowSuffix?: string, dataId?: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminNETResultSysFile>> {
|
||
return SysFileApiFp(configuration).apiSysFileUploadFilePostForm(file, fileType, fileAlias, isPublic, allowSuffix, dataId, userId, options).then((request) => request(axios, basePath));
|
||
},
|
||
/**
|
||
*
|
||
* @summary 上传多文件 🔖
|
||
* @param {Array<Blob>} [files]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileUploadFilesPostForm(files?: Array<Blob>, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminNETResultListSysFile>> {
|
||
return SysFileApiFp(configuration).apiSysFileUploadFilesPostForm(files, options).then((request) => request(axios, basePath));
|
||
},
|
||
/**
|
||
*
|
||
* @summary 上传Logo 🔖
|
||
* @param {number} tenantId
|
||
* @param {Blob} [file]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileUploadLogoTenantIdPostForm(tenantId: number, file?: Blob, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminNETResultSysFile>> {
|
||
return SysFileApiFp(configuration).apiSysFileUploadLogoTenantIdPostForm(tenantId, file, options).then((request) => request(axios, basePath));
|
||
},
|
||
/**
|
||
*
|
||
* @summary 上传电子签名 🔖
|
||
* @param {Blob} [file]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async apiSysFileUploadSignaturePostForm(file?: Blob, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminNETResultSysFile>> {
|
||
return SysFileApiFp(configuration).apiSysFileUploadSignaturePostForm(file, options).then((request) => request(axios, basePath));
|
||
},
|
||
/**
|
||
*
|
||
* @summary 根据文件Id和MD5下载(与db存储模式路径对应) 🔖
|
||
* @param {number} [id]
|
||
* @param {string} [fileMd5]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
*/
|
||
async uploadDownloadfileGet(id?: number, fileMd5?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminNETResultIActionResult>> {
|
||
return SysFileApiFp(configuration).uploadDownloadfileGet(id, fileMd5, options).then((request) => request(axios, basePath));
|
||
},
|
||
};
|
||
};
|
||
|
||
/**
|
||
* SysFileApi - object-oriented interface
|
||
* @export
|
||
* @class SysFileApi
|
||
* @extends {BaseAPI}
|
||
*/
|
||
export class SysFileApi extends BaseAPI {
|
||
/**
|
||
*
|
||
* @summary 删除文件 🔖
|
||
* @param {BaseIdInput} [body]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
* @memberof SysFileApi
|
||
*/
|
||
public async apiSysFileDeletePost(body?: BaseIdInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
||
return SysFileApiFp(this.configuration).apiSysFileDeletePost(body, options).then((request) => request(this.axios, this.basePath));
|
||
}
|
||
/**
|
||
*
|
||
* @summary 根据文件Id或Url下载 🔖
|
||
* @param {SysFile} [body]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
* @memberof SysFileApi
|
||
*/
|
||
public async apiSysFileDownloadFilePost(body?: SysFile, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminNETResultIActionResult>> {
|
||
return SysFileApiFp(this.configuration).apiSysFileDownloadFilePost(body, options).then((request) => request(this.axios, this.basePath));
|
||
}
|
||
/**
|
||
*
|
||
* @summary 下载指定文件Base64格式 🔖
|
||
* @param {number} [id]
|
||
* @param {string} [url]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
* @memberof SysFileApi
|
||
*/
|
||
public async apiSysFileFileBase64Get(id?: number, url?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminNETResultString>> {
|
||
return SysFileApiFp(this.configuration).apiSysFileFileBase64Get(id, url, options).then((request) => request(this.axios, this.basePath));
|
||
}
|
||
/**
|
||
*
|
||
* @summary 根据文件Id集合获取文件 🔖
|
||
* @param {Array<number>} [ids]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
* @memberof SysFileApi
|
||
*/
|
||
public async apiSysFileFileByIdsGet(ids?: Array<number>, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminNETResultListSysFile>> {
|
||
return SysFileApiFp(this.configuration).apiSysFileFileByIdsGet(ids, options).then((request) => request(this.axios, this.basePath));
|
||
}
|
||
/**
|
||
*
|
||
* @summary 获取文件 🔖
|
||
* @param {number} [id]
|
||
* @param {boolean} [isClearFilter]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
* @memberof SysFileApi
|
||
*/
|
||
public async apiSysFileFileGet(id?: number, isClearFilter?: boolean, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminNETResultSysFile>> {
|
||
return SysFileApiFp(this.configuration).apiSysFileFileGet(id, isClearFilter, options).then((request) => request(this.axios, this.basePath));
|
||
}
|
||
/**
|
||
*
|
||
* @summary 获取文件路径 🔖
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
* @memberof SysFileApi
|
||
*/
|
||
public async apiSysFileFolderGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminNETResultListTreeNode>> {
|
||
return SysFileApiFp(this.configuration).apiSysFileFolderGet(options).then((request) => request(this.axios, this.basePath));
|
||
}
|
||
/**
|
||
*
|
||
* @summary 获取文件分页列表 🔖
|
||
* @param {PageFileInput} [body]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
* @memberof SysFileApi
|
||
*/
|
||
public async apiSysFilePagePost(body?: PageFileInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminNETResultSqlSugarPagedListSysFile>> {
|
||
return SysFileApiFp(this.configuration).apiSysFilePagePost(body, options).then((request) => request(this.axios, this.basePath));
|
||
}
|
||
/**
|
||
*
|
||
* @summary 文件预览 🔖
|
||
* @param {number} id
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
* @memberof SysFileApi
|
||
*/
|
||
public async apiSysFilePreviewIdGet(id: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminNETResultIActionResult>> {
|
||
return SysFileApiFp(this.configuration).apiSysFilePreviewIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
||
}
|
||
/**
|
||
*
|
||
* @summary 更新文件 🔖
|
||
* @param {SysFile} [body]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
* @memberof SysFileApi
|
||
*/
|
||
public async apiSysFileUpdatePost(body?: SysFile, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
||
return SysFileApiFp(this.configuration).apiSysFileUpdatePost(body, options).then((request) => request(this.axios, this.basePath));
|
||
}
|
||
/**
|
||
*
|
||
* @summary 上传头像 🔖
|
||
* @param {Blob} [file]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
* @memberof SysFileApi
|
||
*/
|
||
public async apiSysFileUploadAvatarPostForm(file?: Blob, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminNETResultSysFile>> {
|
||
return SysFileApiFp(this.configuration).apiSysFileUploadAvatarPostForm(file, options).then((request) => request(this.axios, this.basePath));
|
||
}
|
||
/**
|
||
*
|
||
* @summary 上传轮播图 🔖
|
||
* @param {number} tenantId
|
||
* @param {Array<Blob>} [files]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
* @memberof SysFileApi
|
||
*/
|
||
public async apiSysFileUploadCarouselTenantIdPostForm(tenantId: number, files?: Array<Blob>, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminNETResultListSysFile>> {
|
||
return SysFileApiFp(this.configuration).apiSysFileUploadCarouselTenantIdPostForm(tenantId, files, options).then((request) => request(this.axios, this.basePath));
|
||
}
|
||
/**
|
||
*
|
||
* @summary 上传文件Base64 🔖
|
||
* @param {UploadFileFromBase64Input} [body]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
* @memberof SysFileApi
|
||
*/
|
||
public async apiSysFileUploadFileFromBase64Post(body?: UploadFileFromBase64Input, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminNETResultSysFile>> {
|
||
return SysFileApiFp(this.configuration).apiSysFileUploadFileFromBase64Post(body, options).then((request) => request(this.axios, this.basePath));
|
||
}
|
||
/**
|
||
*
|
||
* @summary 上传文件 🔖
|
||
* @param {Blob} [file]
|
||
* @param {string} [fileType]
|
||
* @param {string} [fileAlias]
|
||
* @param {boolean} [isPublic]
|
||
* @param {string} [allowSuffix]
|
||
* @param {number} [dataId]
|
||
* @param {number} [userId]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
* @memberof SysFileApi
|
||
*/
|
||
public async apiSysFileUploadFilePostForm(file?: Blob, fileType?: string, fileAlias?: string, isPublic?: boolean, allowSuffix?: string, dataId?: number, userId?: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminNETResultSysFile>> {
|
||
return SysFileApiFp(this.configuration).apiSysFileUploadFilePostForm(file, fileType, fileAlias, isPublic, allowSuffix, dataId, userId, options).then((request) => request(this.axios, this.basePath));
|
||
}
|
||
/**
|
||
*
|
||
* @summary 上传多文件 🔖
|
||
* @param {Array<Blob>} [files]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
* @memberof SysFileApi
|
||
*/
|
||
public async apiSysFileUploadFilesPostForm(files?: Array<Blob>, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminNETResultListSysFile>> {
|
||
return SysFileApiFp(this.configuration).apiSysFileUploadFilesPostForm(files, options).then((request) => request(this.axios, this.basePath));
|
||
}
|
||
/**
|
||
*
|
||
* @summary 上传Logo 🔖
|
||
* @param {number} tenantId
|
||
* @param {Blob} [file]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
* @memberof SysFileApi
|
||
*/
|
||
public async apiSysFileUploadLogoTenantIdPostForm(tenantId: number, file?: Blob, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminNETResultSysFile>> {
|
||
return SysFileApiFp(this.configuration).apiSysFileUploadLogoTenantIdPostForm(tenantId, file, options).then((request) => request(this.axios, this.basePath));
|
||
}
|
||
/**
|
||
*
|
||
* @summary 上传电子签名 🔖
|
||
* @param {Blob} [file]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
* @memberof SysFileApi
|
||
*/
|
||
public async apiSysFileUploadSignaturePostForm(file?: Blob, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminNETResultSysFile>> {
|
||
return SysFileApiFp(this.configuration).apiSysFileUploadSignaturePostForm(file, options).then((request) => request(this.axios, this.basePath));
|
||
}
|
||
/**
|
||
*
|
||
* @summary 根据文件Id和MD5下载(与db存储模式路径对应) 🔖
|
||
* @param {number} [id]
|
||
* @param {string} [fileMd5]
|
||
* @param {*} [options] Override http request option.
|
||
* @throws {RequiredError}
|
||
* @memberof SysFileApi
|
||
*/
|
||
public async uploadDownloadfileGet(id?: number, fileMd5?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminNETResultIActionResult>> {
|
||
return SysFileApiFp(this.configuration).uploadDownloadfileGet(id, fileMd5, options).then((request) => request(this.axios, this.basePath));
|
||
}
|
||
}
|