|
|
@@ -48,7 +48,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
if (configuration) {
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
}
|
|
|
- const localVarRequestOptions: AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options };
|
|
|
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
@@ -72,9 +72,9 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
}
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.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 || "");
|
|
|
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
|
|
|
|
|
return {
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
|
@@ -96,7 +96,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
if (configuration) {
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
}
|
|
|
- const localVarRequestOptions: AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options };
|
|
|
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
@@ -120,9 +120,9 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
}
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.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 || "");
|
|
|
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
|
|
|
|
|
return {
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
|
@@ -144,7 +144,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
if (configuration) {
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
}
|
|
|
- const localVarRequestOptions: AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options };
|
|
|
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
@@ -168,9 +168,9 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
}
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.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 || "");
|
|
|
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
|
|
|
|
|
return {
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
|
@@ -185,13 +185,16 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
* @param {string} [fileType] 文件类型
|
|
|
* @param {boolean} [isPublic] 是否公开 若为true则所有人都可以查看,默认只有自己或有权限的可以查看
|
|
|
* @param {string} [url] 文件Url
|
|
|
+ * @param {number} [belongId] 所属实体ID
|
|
|
+ * @param {number} [relationId] 关联对象Id
|
|
|
+ * @param {string} [relationName] 关联对象名称
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- apiSysFileFileGet: async (id: number, fileName?: string, fileType?: string, isPublic?: boolean, url?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ apiSysFileFileGet: async (id: number, fileName?: string, fileType?: string, isPublic?: boolean, url?: string, belongId?: number, relationId?: number, relationName?: string, 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 apiSysFileFileGet.');
|
|
|
+ throw new RequiredError('id','Required parameter id was null or undefined when calling apiSysFileFileGet.');
|
|
|
}
|
|
|
const localVarPath = `/api/sysFile/file`;
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
@@ -200,7 +203,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
if (configuration) {
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
}
|
|
|
- const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options };
|
|
|
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
@@ -229,6 +232,18 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
localVarQueryParameter['Url'] = url;
|
|
|
}
|
|
|
|
|
|
+ if (belongId !== undefined) {
|
|
|
+ localVarQueryParameter['BelongId'] = belongId;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (relationId !== undefined) {
|
|
|
+ localVarQueryParameter['RelationId'] = relationId;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (relationName !== undefined) {
|
|
|
+ localVarQueryParameter['RelationName'] = relationName;
|
|
|
+ }
|
|
|
+
|
|
|
if (id !== undefined) {
|
|
|
localVarQueryParameter['Id'] = id;
|
|
|
}
|
|
|
@@ -242,7 +257,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
}
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
|
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
|
|
|
return {
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
|
@@ -264,7 +279,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
if (configuration) {
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
}
|
|
|
- const localVarRequestOptions: AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options };
|
|
|
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
@@ -288,9 +303,9 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
}
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.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 || "");
|
|
|
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
|
|
|
|
|
return {
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
|
@@ -307,7 +322,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
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.');
|
|
|
+ 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)));
|
|
|
@@ -317,7 +332,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
if (configuration) {
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
}
|
|
|
- const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options };
|
|
|
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
@@ -339,7 +354,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
}
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
|
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
|
|
|
return {
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
|
@@ -364,7 +379,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
if (configuration) {
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
}
|
|
|
- const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options };
|
|
|
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
@@ -402,7 +417,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
}
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
|
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
|
|
|
return {
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
|
@@ -424,7 +439,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
if (configuration) {
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
}
|
|
|
- const localVarRequestOptions: AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options };
|
|
|
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
@@ -448,9 +463,9 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
}
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.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 || "");
|
|
|
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
|
|
|
|
|
return {
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
|
@@ -472,7 +487,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
if (configuration) {
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
}
|
|
|
- const localVarRequestOptions: AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options };
|
|
|
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
const localVarFormParams = new FormData();
|
|
|
@@ -487,7 +502,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
}
|
|
|
|
|
|
|
|
|
- if (file !== undefined) {
|
|
|
+ if (file !== undefined) {
|
|
|
localVarFormParams.append('file', file as any);
|
|
|
}
|
|
|
|
|
|
@@ -501,7 +516,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
}
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
|
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
localVarRequestOptions.data = localVarFormParams;
|
|
|
|
|
|
return {
|
|
|
@@ -524,7 +539,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
if (configuration) {
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
}
|
|
|
- const localVarRequestOptions: AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options };
|
|
|
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
@@ -548,9 +563,9 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
}
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.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 || "");
|
|
|
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
|
|
|
|
|
return {
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
|
@@ -565,11 +580,12 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
* @param {boolean} [isPublic]
|
|
|
* @param {string} [path]
|
|
|
* @param {number} [belongId]
|
|
|
+ * @param {number} [relationId]
|
|
|
+ * @param {string} [relationName]
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- apiSysFileUploadFilePostForm: async (file?: Blob, fileType?: string, isPublic?: boolean, path?: string, options: AxiosRequestConfig = {}
|
|
|
- , belongId?: number, relationId?: number, relationName?: string): Promise<RequestArgs> => {
|
|
|
+ apiSysFileUploadFilePostForm: async (file?: Blob, fileType?: string, isPublic?: boolean, path?: string, belongId?: number, relationId?: number, relationName?: string, 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');
|
|
|
@@ -577,7 +593,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
if (configuration) {
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
}
|
|
|
- const localVarRequestOptions: AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options };
|
|
|
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
const localVarFormParams = new FormData();
|
|
|
@@ -592,31 +608,34 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
}
|
|
|
|
|
|
|
|
|
- if (file !== undefined) {
|
|
|
+ if (file !== undefined) {
|
|
|
localVarFormParams.append('File', file as any);
|
|
|
}
|
|
|
|
|
|
- if (fileType !== undefined) {
|
|
|
+ if (fileType !== undefined) {
|
|
|
localVarFormParams.append('FileType', fileType as any);
|
|
|
}
|
|
|
|
|
|
- if (isPublic !== undefined) {
|
|
|
+ if (isPublic !== undefined) {
|
|
|
localVarFormParams.append('IsPublic', isPublic as any);
|
|
|
}
|
|
|
|
|
|
- if (path !== undefined) {
|
|
|
+ if (path !== undefined) {
|
|
|
localVarFormParams.append('Path', path as any);
|
|
|
}
|
|
|
- if (belongId > 0) {
|
|
|
+
|
|
|
+ if (belongId !== undefined) {
|
|
|
localVarFormParams.append('BelongId', belongId as any);
|
|
|
}
|
|
|
|
|
|
- if (relationId > 0) {
|
|
|
+ if (relationId !== undefined) {
|
|
|
localVarFormParams.append('RelationId', relationId as any);
|
|
|
}
|
|
|
- if (relationName !== undefined) {
|
|
|
+
|
|
|
+ if (relationName !== undefined) {
|
|
|
localVarFormParams.append('RelationName', relationName as any);
|
|
|
}
|
|
|
+
|
|
|
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
for (const key in localVarQueryParameter) {
|
|
|
@@ -627,7 +646,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
}
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
|
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
localVarRequestOptions.data = localVarFormParams;
|
|
|
|
|
|
return {
|
|
|
@@ -635,7 +654,6 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
options: localVarRequestOptions,
|
|
|
};
|
|
|
},
|
|
|
-
|
|
|
/**
|
|
|
*
|
|
|
* @summary 上传多文件 🔖
|
|
|
@@ -651,7 +669,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
if (configuration) {
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
}
|
|
|
- const localVarRequestOptions: AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options };
|
|
|
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
const localVarFormParams = new FormData();
|
|
|
@@ -681,7 +699,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
}
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
|
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
localVarRequestOptions.data = localVarFormParams;
|
|
|
|
|
|
return {
|
|
|
@@ -704,7 +722,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
if (configuration) {
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
}
|
|
|
- const localVarRequestOptions: AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options };
|
|
|
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
const localVarFormParams = new FormData();
|
|
|
@@ -719,7 +737,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
}
|
|
|
|
|
|
|
|
|
- if (file !== undefined) {
|
|
|
+ if (file !== undefined) {
|
|
|
localVarFormParams.append('file', file as any);
|
|
|
}
|
|
|
|
|
|
@@ -733,7 +751,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
}
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
|
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
localVarRequestOptions.data = localVarFormParams;
|
|
|
|
|
|
return {
|
|
|
@@ -748,7 +766,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
* SysFileApi - functional programming interface
|
|
|
* @export
|
|
|
*/
|
|
|
-export const SysFileApiFp = function (configuration?: Configuration) {
|
|
|
+export const SysFileApiFp = function(configuration?: Configuration) {
|
|
|
return {
|
|
|
/**
|
|
|
*
|
|
|
@@ -760,7 +778,7 @@ export const SysFileApiFp = function (configuration?: Configuration) {
|
|
|
async apiSysFileDeletePost(body?: DeleteFileInput, 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 };
|
|
|
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
};
|
|
|
},
|
|
|
@@ -774,7 +792,7 @@ export const SysFileApiFp = function (configuration?: Configuration) {
|
|
|
async apiSysFileDownloadFileBase64Post(body?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultString>>> {
|
|
|
const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileDownloadFileBase64Post(body, options);
|
|
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
- const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
|
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
};
|
|
|
},
|
|
|
@@ -788,7 +806,7 @@ export const SysFileApiFp = function (configuration?: Configuration) {
|
|
|
async apiSysFileDownloadFilePost(body?: FileInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultIActionResult>>> {
|
|
|
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 };
|
|
|
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
};
|
|
|
},
|
|
|
@@ -800,13 +818,16 @@ export const SysFileApiFp = function (configuration?: Configuration) {
|
|
|
* @param {string} [fileType] 文件类型
|
|
|
* @param {boolean} [isPublic] 是否公开 若为true则所有人都可以查看,默认只有自己或有权限的可以查看
|
|
|
* @param {string} [url] 文件Url
|
|
|
+ * @param {number} [belongId] 所属实体ID
|
|
|
+ * @param {number} [relationId] 关联对象Id
|
|
|
+ * @param {string} [relationName] 关联对象名称
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- async apiSysFileFileGet(id: number, fileName?: string, fileType?: string, isPublic?: boolean, url?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSysFile>>> {
|
|
|
- const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileFileGet(id, fileName, fileType, isPublic, url, options);
|
|
|
+ async apiSysFileFileGet(id: number, fileName?: string, fileType?: string, isPublic?: boolean, url?: string, belongId?: number, relationId?: number, relationName?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSysFile>>> {
|
|
|
+ const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileFileGet(id, fileName, fileType, isPublic, url, belongId, relationId, relationName, options);
|
|
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
- const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
|
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
};
|
|
|
},
|
|
|
@@ -820,7 +841,7 @@ export const SysFileApiFp = function (configuration?: Configuration) {
|
|
|
async apiSysFilePagePost(body?: PageFileInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSqlSugarPagedListSysFile>>> {
|
|
|
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 };
|
|
|
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
};
|
|
|
},
|
|
|
@@ -834,7 +855,7 @@ export const SysFileApiFp = function (configuration?: Configuration) {
|
|
|
async apiSysFilePreviewIdGet(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultIActionResult>>> {
|
|
|
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 };
|
|
|
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
};
|
|
|
},
|
|
|
@@ -851,7 +872,7 @@ export const SysFileApiFp = function (configuration?: Configuration) {
|
|
|
async apiSysFileRelationFilesGet(relationName?: string, relationId?: number, fileTypes?: string, belongId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListFileOutput>>> {
|
|
|
const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileRelationFilesGet(relationName, relationId, fileTypes, belongId, options);
|
|
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
- const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
|
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
};
|
|
|
},
|
|
|
@@ -865,7 +886,7 @@ export const SysFileApiFp = function (configuration?: Configuration) {
|
|
|
async apiSysFileUpdatePost(body?: FileInput, 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 };
|
|
|
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
};
|
|
|
},
|
|
|
@@ -879,7 +900,7 @@ export const SysFileApiFp = function (configuration?: Configuration) {
|
|
|
async apiSysFileUploadAvatarPostForm(file?: Blob, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSysFile>>> {
|
|
|
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 };
|
|
|
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
};
|
|
|
},
|
|
|
@@ -893,7 +914,7 @@ export const SysFileApiFp = function (configuration?: Configuration) {
|
|
|
async apiSysFileUploadFileFromBase64Post(body?: UploadFileFromBase64Input, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSysFile>>> {
|
|
|
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 };
|
|
|
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
};
|
|
|
},
|
|
|
@@ -904,17 +925,19 @@ export const SysFileApiFp = function (configuration?: Configuration) {
|
|
|
* @param {string} [fileType]
|
|
|
* @param {boolean} [isPublic]
|
|
|
* @param {string} [path]
|
|
|
+ * @param {number} [belongId]
|
|
|
+ * @param {number} [relationId]
|
|
|
+ * @param {string} [relationName]
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- async apiSysFileUploadFilePostForm(file?: Blob, fileType?: string, isPublic?: boolean, path?: string, options?: AxiosRequestConfig, belongId?: number, relationId?: number, relationName?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSysFile>>> {
|
|
|
- const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileUploadFilePostForm(file, fileType, isPublic, path, options, belongId, relationId, relationName);
|
|
|
+ async apiSysFileUploadFilePostForm(file?: Blob, fileType?: string, isPublic?: boolean, path?: string, belongId?: number, relationId?: number, relationName?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSysFile>>> {
|
|
|
+ const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileUploadFilePostForm(file, fileType, isPublic, path, belongId, relationId, relationName, options);
|
|
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
- const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
|
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
};
|
|
|
},
|
|
|
-
|
|
|
/**
|
|
|
*
|
|
|
* @summary 上传多文件 🔖
|
|
|
@@ -925,7 +948,7 @@ export const SysFileApiFp = function (configuration?: Configuration) {
|
|
|
async apiSysFileUploadFilesPostForm(files?: Array<Blob>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListSysFile>>> {
|
|
|
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 };
|
|
|
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
};
|
|
|
},
|
|
|
@@ -939,7 +962,7 @@ export const SysFileApiFp = function (configuration?: Configuration) {
|
|
|
async apiSysFileUploadSignaturePostForm(file?: Blob, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSysFile>>> {
|
|
|
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 };
|
|
|
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
};
|
|
|
},
|
|
|
@@ -990,11 +1013,14 @@ export const SysFileApiFactory = function (configuration?: Configuration, basePa
|
|
|
* @param {string} [fileType] 文件类型
|
|
|
* @param {boolean} [isPublic] 是否公开 若为true则所有人都可以查看,默认只有自己或有权限的可以查看
|
|
|
* @param {string} [url] 文件Url
|
|
|
+ * @param {number} [belongId] 所属实体ID
|
|
|
+ * @param {number} [relationId] 关联对象Id
|
|
|
+ * @param {string} [relationName] 关联对象名称
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- async apiSysFileFileGet(id: number, fileName?: string, fileType?: string, isPublic?: boolean, url?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSysFile>> {
|
|
|
- return SysFileApiFp(configuration).apiSysFileFileGet(id, fileName, fileType, isPublic, url, options).then((request) => request(axios, basePath));
|
|
|
+ async apiSysFileFileGet(id: number, fileName?: string, fileType?: string, isPublic?: boolean, url?: string, belongId?: number, relationId?: number, relationName?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSysFile>> {
|
|
|
+ return SysFileApiFp(configuration).apiSysFileFileGet(id, fileName, fileType, isPublic, url, belongId, relationId, relationName, options).then((request) => request(axios, basePath));
|
|
|
},
|
|
|
/**
|
|
|
*
|
|
|
@@ -1066,11 +1092,14 @@ export const SysFileApiFactory = function (configuration?: Configuration, basePa
|
|
|
* @param {string} [fileType]
|
|
|
* @param {boolean} [isPublic]
|
|
|
* @param {string} [path]
|
|
|
+ * @param {number} [belongId]
|
|
|
+ * @param {number} [relationId]
|
|
|
+ * @param {string} [relationName]
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- async apiSysFileUploadFilePostForm(file?: Blob, fileType?: string, isPublic?: boolean, path?: string, options?: AxiosRequestConfig, belongId?: number, relationId?: number, relationName?: string): Promise<AxiosResponse<AdminResultSysFile>> {
|
|
|
- return SysFileApiFp(configuration).apiSysFileUploadFilePostForm(file, fileType, isPublic, path, options, belongId, relationId, relationName).then((request) => request(axios, basePath));
|
|
|
+ async apiSysFileUploadFilePostForm(file?: Blob, fileType?: string, isPublic?: boolean, path?: string, belongId?: number, relationId?: number, relationName?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSysFile>> {
|
|
|
+ return SysFileApiFp(configuration).apiSysFileUploadFilePostForm(file, fileType, isPublic, path, belongId, relationId, relationName, options).then((request) => request(axios, basePath));
|
|
|
},
|
|
|
/**
|
|
|
*
|
|
|
@@ -1110,7 +1139,7 @@ export class SysFileApi extends BaseAPI {
|
|
|
* @throws {RequiredError}
|
|
|
* @memberof SysFileApi
|
|
|
*/
|
|
|
- public async apiSysFileDeletePost(body?: DeleteFileInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
|
+ public async apiSysFileDeletePost(body?: DeleteFileInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
|
return SysFileApiFp(this.configuration).apiSysFileDeletePost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
/**
|
|
|
@@ -1121,7 +1150,7 @@ export class SysFileApi extends BaseAPI {
|
|
|
* @throws {RequiredError}
|
|
|
* @memberof SysFileApi
|
|
|
*/
|
|
|
- public async apiSysFileDownloadFileBase64Post(body?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultString>> {
|
|
|
+ public async apiSysFileDownloadFileBase64Post(body?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultString>> {
|
|
|
return SysFileApiFp(this.configuration).apiSysFileDownloadFileBase64Post(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
/**
|
|
|
@@ -1132,7 +1161,7 @@ export class SysFileApi extends BaseAPI {
|
|
|
* @throws {RequiredError}
|
|
|
* @memberof SysFileApi
|
|
|
*/
|
|
|
- public async apiSysFileDownloadFilePost(body?: FileInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultIActionResult>> {
|
|
|
+ public async apiSysFileDownloadFilePost(body?: FileInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultIActionResult>> {
|
|
|
return SysFileApiFp(this.configuration).apiSysFileDownloadFilePost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
/**
|
|
|
@@ -1143,12 +1172,15 @@ export class SysFileApi extends BaseAPI {
|
|
|
* @param {string} [fileType] 文件类型
|
|
|
* @param {boolean} [isPublic] 是否公开 若为true则所有人都可以查看,默认只有自己或有权限的可以查看
|
|
|
* @param {string} [url] 文件Url
|
|
|
+ * @param {number} [belongId] 所属实体ID
|
|
|
+ * @param {number} [relationId] 关联对象Id
|
|
|
+ * @param {string} [relationName] 关联对象名称
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
* @memberof SysFileApi
|
|
|
*/
|
|
|
- public async apiSysFileFileGet(id: number, fileName?: string, fileType?: string, isPublic?: boolean, url?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSysFile>> {
|
|
|
- return SysFileApiFp(this.configuration).apiSysFileFileGet(id, fileName, fileType, isPublic, url, options).then((request) => request(this.axios, this.basePath));
|
|
|
+ public async apiSysFileFileGet(id: number, fileName?: string, fileType?: string, isPublic?: boolean, url?: string, belongId?: number, relationId?: number, relationName?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSysFile>> {
|
|
|
+ return SysFileApiFp(this.configuration).apiSysFileFileGet(id, fileName, fileType, isPublic, url, belongId, relationId, relationName, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
/**
|
|
|
*
|
|
|
@@ -1158,7 +1190,7 @@ export class SysFileApi extends BaseAPI {
|
|
|
* @throws {RequiredError}
|
|
|
* @memberof SysFileApi
|
|
|
*/
|
|
|
- public async apiSysFilePagePost(body?: PageFileInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSqlSugarPagedListSysFile>> {
|
|
|
+ public async apiSysFilePagePost(body?: PageFileInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSqlSugarPagedListSysFile>> {
|
|
|
return SysFileApiFp(this.configuration).apiSysFilePagePost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
/**
|
|
|
@@ -1169,7 +1201,7 @@ export class SysFileApi extends BaseAPI {
|
|
|
* @throws {RequiredError}
|
|
|
* @memberof SysFileApi
|
|
|
*/
|
|
|
- public async apiSysFilePreviewIdGet(id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultIActionResult>> {
|
|
|
+ public async apiSysFilePreviewIdGet(id: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultIActionResult>> {
|
|
|
return SysFileApiFp(this.configuration).apiSysFilePreviewIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
/**
|
|
|
@@ -1183,7 +1215,7 @@ export class SysFileApi extends BaseAPI {
|
|
|
* @throws {RequiredError}
|
|
|
* @memberof SysFileApi
|
|
|
*/
|
|
|
- public async apiSysFileRelationFilesGet(relationName?: string, relationId?: number, fileTypes?: string, belongId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListFileOutput>> {
|
|
|
+ public async apiSysFileRelationFilesGet(relationName?: string, relationId?: number, fileTypes?: string, belongId?: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListFileOutput>> {
|
|
|
return SysFileApiFp(this.configuration).apiSysFileRelationFilesGet(relationName, relationId, fileTypes, belongId, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
/**
|
|
|
@@ -1194,7 +1226,7 @@ export class SysFileApi extends BaseAPI {
|
|
|
* @throws {RequiredError}
|
|
|
* @memberof SysFileApi
|
|
|
*/
|
|
|
- public async apiSysFileUpdatePost(body?: FileInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
|
+ public async apiSysFileUpdatePost(body?: FileInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
|
return SysFileApiFp(this.configuration).apiSysFileUpdatePost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
/**
|
|
|
@@ -1205,7 +1237,7 @@ export class SysFileApi extends BaseAPI {
|
|
|
* @throws {RequiredError}
|
|
|
* @memberof SysFileApi
|
|
|
*/
|
|
|
- public async apiSysFileUploadAvatarPostForm(file?: Blob, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSysFile>> {
|
|
|
+ public async apiSysFileUploadAvatarPostForm(file?: Blob, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSysFile>> {
|
|
|
return SysFileApiFp(this.configuration).apiSysFileUploadAvatarPostForm(file, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
/**
|
|
|
@@ -1216,7 +1248,7 @@ export class SysFileApi extends BaseAPI {
|
|
|
* @throws {RequiredError}
|
|
|
* @memberof SysFileApi
|
|
|
*/
|
|
|
- public async apiSysFileUploadFileFromBase64Post(body?: UploadFileFromBase64Input, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSysFile>> {
|
|
|
+ public async apiSysFileUploadFileFromBase64Post(body?: UploadFileFromBase64Input, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSysFile>> {
|
|
|
return SysFileApiFp(this.configuration).apiSysFileUploadFileFromBase64Post(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
/**
|
|
|
@@ -1226,14 +1258,16 @@ export class SysFileApi extends BaseAPI {
|
|
|
* @param {string} [fileType]
|
|
|
* @param {boolean} [isPublic]
|
|
|
* @param {string} [path]
|
|
|
+ * @param {number} [belongId]
|
|
|
+ * @param {number} [relationId]
|
|
|
+ * @param {string} [relationName]
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
* @memberof SysFileApi
|
|
|
*/
|
|
|
- public async apiSysFileUploadFilePostForm(file?: Blob, fileType?: string, isPublic?: boolean, path?: string, options?: AxiosRequestConfig, belongId?: number, relationId?: number, relationName?: string): Promise<AxiosResponse<AdminResultSysFile>> {
|
|
|
- return SysFileApiFp(this.configuration).apiSysFileUploadFilePostForm(file, fileType, isPublic, path, options, belongId, relationId, relationName).then((request) => request(this.axios, this.basePath));
|
|
|
+ public async apiSysFileUploadFilePostForm(file?: Blob, fileType?: string, isPublic?: boolean, path?: string, belongId?: number, relationId?: number, relationName?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSysFile>> {
|
|
|
+ return SysFileApiFp(this.configuration).apiSysFileUploadFilePostForm(file, fileType, isPublic, path, belongId, relationId, relationName, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
-
|
|
|
/**
|
|
|
*
|
|
|
* @summary 上传多文件 🔖
|
|
|
@@ -1242,7 +1276,7 @@ export class SysFileApi extends BaseAPI {
|
|
|
* @throws {RequiredError}
|
|
|
* @memberof SysFileApi
|
|
|
*/
|
|
|
- public async apiSysFileUploadFilesPostForm(files?: Array<Blob>, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListSysFile>> {
|
|
|
+ public async apiSysFileUploadFilesPostForm(files?: Array<Blob>, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListSysFile>> {
|
|
|
return SysFileApiFp(this.configuration).apiSysFileUploadFilesPostForm(files, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
/**
|
|
|
@@ -1253,7 +1287,7 @@ export class SysFileApi extends BaseAPI {
|
|
|
* @throws {RequiredError}
|
|
|
* @memberof SysFileApi
|
|
|
*/
|
|
|
- public async apiSysFileUploadSignaturePostForm(file?: Blob, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSysFile>> {
|
|
|
+ public async apiSysFileUploadSignaturePostForm(file?: Blob, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSysFile>> {
|
|
|
return SysFileApiFp(this.configuration).apiSysFileUploadSignaturePostForm(file, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
}
|