"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.request = exports.URL = exports.PathParams = void 0; var util_1 = require("../../../utils/util"); var PathParams = /** @class */ (function () { function PathParams() { /** fileName */ this.fileName = ''; } return PathParams; }()); exports.PathParams = PathParams; exports.URL = '/api/image/get/{fileName}'; /** * @desc 获取文件 */ function request(pathParams, options) { var url = '/api/image/get/{fileName}'; for (var key in pathParams) { url.replace('{' + key + '}', pathParams[key]); } var fetchOption = Object.assign({ url: url, method: 'GET', headers: { 'Content-Type': 'application/json', }, }, options); return util_1.fetch(fetchOption); } exports.request = request;