|
|
@@ -177,6 +177,73 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
options: localVarRequestOptions,
|
|
|
};
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @summary 获取文件 🔖
|
|
|
+ * @param {number} id 主键Id
|
|
|
+ * @param {string} [fileName] 文件名称
|
|
|
+ * @param {string} [fileType] 文件类型
|
|
|
+ * @param {string} [url] 文件Url
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ apiSysFileFileGet: async (id: number, fileName?: string, fileType?: string, url?: 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.');
|
|
|
+ }
|
|
|
+ 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 (fileName !== undefined) {
|
|
|
+ localVarQueryParameter['FileName'] = fileName;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (fileType !== undefined) {
|
|
|
+ localVarQueryParameter['FileType'] = fileType;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (url !== undefined) {
|
|
|
+ localVarQueryParameter['Url'] = url;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (id !== undefined) {
|
|
|
+ localVarQueryParameter['Id'] = id;
|
|
|
+ }
|
|
|
+
|
|
|
+ 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 获取文件分页列表 🔖
|
|
|
@@ -227,7 +294,7 @@ export const SysFileApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
},
|
|
|
/**
|
|
|
*
|
|
|
- * @summary 文件预览
|
|
|
+ * @summary 文件预览 🔖
|
|
|
* @param {number} id
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
@@ -703,6 +770,23 @@ export const SysFileApiFp = function(configuration?: Configuration) {
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
};
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @summary 获取文件 🔖
|
|
|
+ * @param {number} id 主键Id
|
|
|
+ * @param {string} [fileName] 文件名称
|
|
|
+ * @param {string} [fileType] 文件类型
|
|
|
+ * @param {string} [url] 文件Url
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ async apiSysFileFileGet(id: number, fileName?: string, fileType?: string, url?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSysFile>>> {
|
|
|
+ const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileFileGet(id, fileName, fileType, url, options);
|
|
|
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
+ return axios.request(axiosRequestArgs);
|
|
|
+ };
|
|
|
+ },
|
|
|
/**
|
|
|
*
|
|
|
* @summary 获取文件分页列表 🔖
|
|
|
@@ -719,7 +803,7 @@ export const SysFileApiFp = function(configuration?: Configuration) {
|
|
|
},
|
|
|
/**
|
|
|
*
|
|
|
- * @summary 文件预览
|
|
|
+ * @summary 文件预览 🔖
|
|
|
* @param {number} id
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
@@ -873,6 +957,19 @@ export const SysFileApiFactory = function (configuration?: Configuration, basePa
|
|
|
async apiSysFileDownloadFilePost(body?: FileInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultIActionResult>> {
|
|
|
return SysFileApiFp(configuration).apiSysFileDownloadFilePost(body, options).then((request) => request(axios, basePath));
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @summary 获取文件 🔖
|
|
|
+ * @param {number} id 主键Id
|
|
|
+ * @param {string} [fileName] 文件名称
|
|
|
+ * @param {string} [fileType] 文件类型
|
|
|
+ * @param {string} [url] 文件Url
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ async apiSysFileFileGet(id: number, fileName?: string, fileType?: string, url?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSysFile>> {
|
|
|
+ return SysFileApiFp(configuration).apiSysFileFileGet(id, fileName, fileType, url, options).then((request) => request(axios, basePath));
|
|
|
+ },
|
|
|
/**
|
|
|
*
|
|
|
* @summary 获取文件分页列表 🔖
|
|
|
@@ -885,7 +982,7 @@ export const SysFileApiFactory = function (configuration?: Configuration, basePa
|
|
|
},
|
|
|
/**
|
|
|
*
|
|
|
- * @summary 文件预览
|
|
|
+ * @summary 文件预览 🔖
|
|
|
* @param {number} id
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
@@ -1011,6 +1108,20 @@ export class SysFileApi extends BaseAPI {
|
|
|
public async apiSysFileDownloadFilePost(body?: FileInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultIActionResult>> {
|
|
|
return SysFileApiFp(this.configuration).apiSysFileDownloadFilePost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @summary 获取文件 🔖
|
|
|
+ * @param {number} id 主键Id
|
|
|
+ * @param {string} [fileName] 文件名称
|
|
|
+ * @param {string} [fileType] 文件类型
|
|
|
+ * @param {string} [url] 文件Url
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ * @memberof SysFileApi
|
|
|
+ */
|
|
|
+ public async apiSysFileFileGet(id: number, fileName?: string, fileType?: string, url?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSysFile>> {
|
|
|
+ return SysFileApiFp(this.configuration).apiSysFileFileGet(id, fileName, fileType, url, options).then((request) => request(this.axios, this.basePath));
|
|
|
+ }
|
|
|
/**
|
|
|
*
|
|
|
* @summary 获取文件分页列表 🔖
|
|
|
@@ -1024,7 +1135,7 @@ export class SysFileApi extends BaseAPI {
|
|
|
}
|
|
|
/**
|
|
|
*
|
|
|
- * @summary 文件预览
|
|
|
+ * @summary 文件预览 🔖
|
|
|
* @param {number} id
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|